tests/testthat/helper.R

skip_if_no_envs <- function() {
  testthat::skip_if(
    nchar(Sys.getenv("CLOUD_USER", unset = "")) == 0,
    "Environment variable not available"
  )
  testthat::skip_if(
    nchar(Sys.getenv("CLOUD_PASS", unset = "")) == 0,
    "Environment variable not available"
  )
}

Try the cloudstoR package in your browser

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

cloudstoR documentation built on Jan. 16, 2022, 9:06 a.m.