From 651f5ef7cbb86ab2c8f51af52d37311612196c73 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Wed, 22 Nov 2023 14:55:01 -0600 Subject: [PATCH] Random upkeep (#454) * Fix build failures with hack for R.cache * Update wordlist for spelling errors * Make tests run in parallel --- DESCRIPTION | 2 ++ inst/WORDLIST | 4 ++++ tests/testthat/helper.R | 10 ++++++++++ 3 files changed, 16 insertions(+) diff --git a/DESCRIPTION b/DESCRIPTION index 2a832cd1..74c8f90f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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) diff --git a/inst/WORDLIST b/inst/WORDLIST index 8297dc5e..f8c5b980 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -111,3 +111,7 @@ workspaces www xclip xsel +PBC +RStudio +mockr +traceback diff --git a/tests/testthat/helper.R b/tests/testthat/helper.R index 03e94e46..edb7f609 100644 --- a/tests/testthat/helper.R +++ b/tests/testthat/helper.R @@ -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) }