Skip to content

Commit

Permalink
Random upkeep (#454)
Browse files Browse the repository at this point in the history
* Fix build failures with hack for R.cache 
* Update wordlist for spelling errors
* Make tests run in parallel
  • Loading branch information
hadley authored Nov 22, 2023
1 parent 8c1bc8c commit 651f5ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Config/Needs/website:
dplyr,
tidyverse/tidytemplate
Config/testthat/edition: 3
Config/testthat/parallel: TRUE
Config/testthat/start-first: knitr-options, venues, reprex
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
Expand Down
4 changes: 4 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,7 @@ workspaces
www
xclip
xsel
PBC
RStudio
mockr
traceback
10 changes: 10 additions & 0 deletions tests/testthat/helper.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

# Work around R.cache bug on CI
if (getRversion() >= "4.0.0" && identical(Sys.getenv("CI"), "true")) {
dir.create(
tools::R_user_dir("R.cache", which = "cache"),
recursive = TRUE,
showWarnings = FALSE
)
}

expect_error_free <- function(...) {
expect_error(..., regexp = NA)
}
Expand Down

0 comments on commit 651f5ef

Please sign in to comment.