Skip to content

Commit

Permalink
use stricter options
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jun 23, 2024
1 parent 3ec7997 commit c9493e9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check-all-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:

- name: Run examples
run: |
options(crayon.enabled = TRUE, warn = 2L)
options(
crayon.enabled = TRUE,
warn = 2L,
warnPartialMatchArgs = TRUE,
warnPartialMatchAttr = TRUE,
warnPartialMatchDollar = TRUE
)
devtools::run_examples(run_dontrun = TRUE, run_donttest = TRUE, document = FALSE)
shell: Rscript {0}
8 changes: 7 additions & 1 deletion .github/workflows/check-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
- name: Render README
run: |
options(crayon.enabled = TRUE, warn = 2L)
options(
crayon.enabled = TRUE,
warn = 2L,
warnPartialMatchArgs = TRUE,
warnPartialMatchAttr = TRUE,
warnPartialMatchDollar = TRUE
)
rmarkdown::render("README.Rmd")
shell: Rscript {0}
8 changes: 7 additions & 1 deletion .github/workflows/check-vignette-warnings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ jobs:
- name: Build vignettes
run: |
options(crayon.enabled = TRUE, warn = 2L)
options(
crayon.enabled = TRUE,
warn = 2L,
warnPartialMatchArgs = TRUE,
warnPartialMatchAttr = TRUE,
warnPartialMatchDollar = TRUE
)
vignettes <- fs::dir_ls("vignettes/", glob = "*.Rmd", recurse = TRUE)
purrr::walk(vignettes, rmarkdown::render)
shell: Rscript {0}

0 comments on commit c9493e9

Please sign in to comment.