R/utils_tests.R

Defines functions get_root_path on_github_actions

# Functions only used for testing


on_github_actions <- function() identical(Sys.getenv("GITHUB_ACTIONS"), "true")

get_root_path <- function() {
  x <- getwd()
  if (on_github_actions()) x <- Sys.getenv("GITHUB_WORKSPACE")
  x
}

Try the pxweb package in your browser

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

pxweb documentation built on Oct. 31, 2022, 5:07 p.m.