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 May 29, 2024, 2:28 a.m.