tests/skip-heavy.R

#' To not run heavy tests add:
#' PCT_RUN_HEAVY_TESTS=false
#' to .Renviron, e.g. with usethis::edit_r_environ()
skip_heavy = function() {
  if(!curl::has_internet() |
     identical(Sys.getenv("PCT_RUN_HEAVY_TESTS"), "false"))
    skip("No connection or not running run once tests.")
}

Try the pct package in your browser

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

pct documentation built on May 31, 2023, 7:55 p.m.