Nothing
# global variables
the <- new.env(parent = emptyenv())
# detect if we're running on CI
ci <- function() {
!is.na(Sys.getenv("CI", unset = NA))
}
# detect if we're running within R CMD build
building <- function() {
nzchar(Sys.getenv("R_CMD")) &&
grepl("Rbuild", basename(dirname(getwd())), fixed = TRUE)
}
# are we running code within R CMD check?
checking <- function() {
"CheckExEnv" %in% search() ||
renv_envvar_exists("_R_CHECK_PACKAGE_NAME_") ||
renv_envvar_exists("_R_CHECK_SIZE_OF_TARBALL_")
}
# NOTE: Prefer using 'testing()' to 'renv_tests_running()' for behavior
# that should apply regardless of the package currently being tested.
#
# 'renv_tests_running()' is appropriate when running renv's own tests.
testing <- function() {
identical(Sys.getenv("TESTTHAT"), "true")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.