tests/testthat/helper-slow.R

skip_slow <- function()  {
  skip_on_cran()
  skip_if_not(is_slow(), "Skipping slow test")
}

is_slow <- function() {
  truthy(Sys.getenv("RENV_TESTTHAT_SLOW", unset = "false"))
}

slow_test_disable <- function() {
  Sys.unsetenv("RENV_TESTTHAT_SLOW")
}

slow_test_enable <- function() {
  Sys.setenv("RENV_TESTTHAT_SLOW" = "true")
}

Try the renv package in your browser

Any scripts or data that you put into this service are public.

renv documentation built on Sept. 19, 2023, 9:06 a.m.