From 1c6ca6099a46f679b2739c31b287a75843d34ae4 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sat, 11 May 2024 20:37:55 +0200 Subject: [PATCH] Pass vignette warnings check (#831) * Pass vignette warnings check * try with devel easystats * Update DESCRIPTION * fixes warning? * fix warning again --- .Rbuildignore | 1 + .../workflows/check-vignette-warnings.yaml | 2 +- .pre-commit-config.yaml | 4 +-- CITATION.cff | 33 ++----------------- Makefile | 29 ++++++++++++++++ codemeta.json | 4 +-- vignettes/web_only/purrr_examples.Rmd | 4 +-- 7 files changed, 39 insertions(+), 38 deletions(-) create mode 100644 Makefile diff --git a/.Rbuildignore b/.Rbuildignore index e1a72099b..3eab51669 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -9,6 +9,7 @@ ^CRAN-RELEASE$ ^CRAN-SUBMISSION$ ^LICENSE\.md$ +^Makefile$ ^Meta$ ^NEWS$ ^README-.*\.png$ diff --git a/.github/workflows/check-vignette-warnings.yaml b/.github/workflows/check-vignette-warnings.yaml index 454912fd1..a863d5c35 100644 --- a/.github/workflows/check-vignette-warnings.yaml +++ b/.github/workflows/check-vignette-warnings.yaml @@ -35,7 +35,7 @@ jobs: - name: Build vignettes run: | - # options(crayon.enabled = TRUE, warn = 2L) + options(crayon.enabled = TRUE, warn = 2L) vignettes <- fs::dir_ls("vignettes/", glob = "*.Rmd", recurse = TRUE) purrr::walk(vignettes, rmarkdown::render) shell: Rscript {0} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 332810642..b86919787 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,14 +6,14 @@ default_language_version: repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.4.1 + rev: v0.4.2 hooks: - id: no-browser-statement - id: no-debug-statement - id: parsable-R - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-json diff --git a/CITATION.cff b/CITATION.cff index ad4194ce5..98589b76b 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -278,7 +278,7 @@ references: abstract: 'insight: Easy Access to Model Information for Various Model Objects' notes: Imports url: https://easystats.github.io/insight/ - repository: https://CRAN.R-project.org/package=insight + repository: https://easystats.r-universe.dev authors: - family-names: Lüdecke given-names: Daniel @@ -375,7 +375,7 @@ references: abstract: 'performance: Assessment of Regression Models Performance' notes: Imports url: https://easystats.github.io/performance/ - repository: https://easystats.r-universe.dev + repository: https://CRAN.R-project.org/package=performance authors: - family-names: Lüdecke given-names: Daniel @@ -581,18 +581,6 @@ references: given-names: Brian email: ripley@stats.ox.ac.uk year: '2024' -- type: software - title: metaBMA - abstract: 'metaBMA: Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis' - notes: Suggests - url: https://danheck.github.io/metaBMA/ - repository: https://CRAN.R-project.org/package=metaBMA - authors: - - family-names: Heck - given-names: Daniel W. - email: daniel.heck@uni-marburg.de - orcid: https://orcid.org/0000-0002-6302-9252 - year: '2024' - type: software title: metafor abstract: 'metafor: Meta-Analysis Package for R' @@ -612,20 +600,6 @@ references: value: https://wviechtb.github.io/metafor/ - type: url value: https://www.wvbauer.com -- type: software - title: metaplus - abstract: 'metaplus: Robust Meta-Analysis and Meta-Regression' - notes: Suggests - repository: https://CRAN.R-project.org/package=metaplus - authors: - - family-names: Beath - given-names: Ken - email: ken@kjbeath.com.au - - family-names: Bolker - given-names: Ben - email: bolker@mcmaster.ca - - name: R Development Core Team - year: '2024' - type: software title: psych abstract: 'psych: Procedures for Psychological, Psychometric, and Personality Research' @@ -638,9 +612,6 @@ references: email: revelle@northwestern.edu orcid: https://orcid.org/0000-0003-4880-9610 year: '2024' - identifiers: - - type: url - value: https://personality-project.org/r/psych-manual.pdf - type: software title: rmarkdown abstract: 'rmarkdown: Dynamic Documents for R' diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..52a92fc64 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +PKGNAME = `sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION` +PKGVERS = `sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION` + +all: check + +build: install_deps + R CMD build . + +check: build + R CMD check --no-manual $(PKGNAME)_$(PKGVERS).tar.gz + +install_deps: + Rscript \ + -e 'if (!requireNamespace("remotes")) install.packages("remotes")' \ + -e 'remotes::install_deps(dependencies = TRUE)' + +install: build + R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz + +clean: + @rm -rf $(PKGNAME)_$(PKGVERS).tar.gz $(PKGNAME).Rcheck + +update_deps: + Rscript \ + -e 'options(repos = c(CRAN = "https://cran.r-project.org"))' \ + -e 'usethis::use_latest_dependencies(source = "CRAN")' \ + -e 'roxygen2::roxygenise()' \ + -e 'codemetar::write_codemeta()' \ + -e 'cffr::cff_write()' diff --git a/codemeta.json b/codemeta.json index ae956d528..d00d21cf6 100644 --- a/codemeta.json +++ b/codemeta.json @@ -14,7 +14,7 @@ "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.3.3 (2024-02-29)", + "runtimePlatform": "R version 4.4.0 (2024-04-24)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -532,7 +532,7 @@ }, "SystemRequirements": null }, - "fileSize": "9363.89KB", + "fileSize": "9347.226KB", "citation": [ { "@type": "ScholarlyArticle", diff --git a/vignettes/web_only/purrr_examples.Rmd b/vignettes/web_only/purrr_examples.Rmd index 9af9fb676..5d3070d89 100644 --- a/vignettes/web_only/purrr_examples.Rmd +++ b/vignettes/web_only/purrr_examples.Rmd @@ -1,10 +1,10 @@ --- -title: "Using '{ggstatsplot}' with the '{purrr}' package" +title: "Using 'ggstatsplot' with the 'purrr' package" output: rmarkdown::html_vignette: toc: true vignette: > - %\VignetteIndexEntry{using '{ggstatsplot}' with the '{purrr}' package} + %\VignetteIndexEntry{Using 'ggstatsplot' with the 'purrr' package} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} ---