tests/testthat/helper_live.R

is_live_tests_enabled <- function() {
  val <- tolower(Sys.getenv("RPDBAPI_RUN_LIVE", "false"))
  val %in% c("true", "1", "yes", "on")
}

skip_if_not_live_tests <- function() {
  testthat::skip_if_not(
    is_live_tests_enabled(),
    "Live API tests are disabled. Set RPDBAPI_RUN_LIVE=true to enable."
  )
  testthat::skip_if_offline()
}

Try the rPDBapi package in your browser

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

rPDBapi documentation built on March 9, 2026, 5:08 p.m.