Skip to content

Commit

Permalink
Pass vignette warnings check (#831)
Browse files Browse the repository at this point in the history
* Pass vignette warnings check

* try with devel easystats

* Update DESCRIPTION

* fixes warning?

* fix warning again
  • Loading branch information
IndrajeetPatil authored May 11, 2024
1 parent 501e00a commit 1c6ca60
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 38 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
^CRAN-RELEASE$
^CRAN-SUBMISSION$
^LICENSE\.md$
^Makefile$
^Meta$
^NEWS$
^README-.*\.png$
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-vignette-warnings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 2 additions & 31 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -581,18 +581,6 @@ references:
given-names: Brian
email: [email protected]
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: [email protected]
orcid: https://orcid.org/0000-0002-6302-9252
year: '2024'
- type: software
title: metafor
abstract: 'metafor: Meta-Analysis Package for R'
Expand All @@ -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: [email protected]
- family-names: Bolker
given-names: Ben
email: [email protected]
- name: R Development Core Team
year: '2024'
- type: software
title: psych
abstract: 'psych: Procedures for Psychological, Psychometric, and Personality Research'
Expand All @@ -638,9 +612,6 @@ references:
email: [email protected]
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'
Expand Down
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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()'
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -532,7 +532,7 @@
},
"SystemRequirements": null
},
"fileSize": "9363.89KB",
"fileSize": "9347.226KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
4 changes: 2 additions & 2 deletions vignettes/web_only/purrr_examples.Rmd
Original file line number Diff line number Diff line change
@@ -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}
---
Expand Down

0 comments on commit 1c6ca60

Please sign in to comment.