Skip to content

Commit

Permalink
test: installing package again
Browse files Browse the repository at this point in the history
  • Loading branch information
oath_nngithub committed Nov 13, 2024
1 parent c32f68e commit 6a56fa2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion man/run.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 6a56fa2

Please sign in to comment.