diff --git a/man/run.Rd b/man/run.Rd index 7d82d9f..cf363bd 100644 --- a/man/run.Rd +++ b/man/run.Rd @@ -7,7 +7,7 @@ run( input, steps = NULL, - summary_file = "summary.html", + summary_file = NULL, n_workers = options::opt("n_workers", env = "whirl"), check_renv = options::opt("check_renv", env = "whirl"), verbosity_level = options::opt("verbosity_level", env = "whirl"), diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R index f8b3169..5ee27ee 100644 --- a/tests/testthat/setup.R +++ b/tests/testthat/setup.R @@ -1,3 +1,20 @@ +## whirl have to be installed for Quarto to use it + +withr::local_envvar( + R_USER_CACHE_DIR = tempfile(), + .local_envir = teardown_env() +) +if (interactive()) { # devtools::test + pkg_path <- "../.." +} else { # R CMD Check + pkg_path <- "../../00_pkg_src/whirl" +} +pak::local_install( + root = pkg_path, + upgrade = FALSE, + dependencies = FALSE, + ask = FALSE +) # Minimal prints to make it easier to read test output