R/r2dii.analysis-package.R

Defines functions .onLoad

#' @keywords internal
"_PACKAGE"

.onLoad <- function(libname, pkgname) {
  # CRAN OMP THREAD LIMIT
  # logic for setting OMP_THREAD_LIMIT form https://stackoverflow.com/a/77323812
  # check modified from testthat's on_cran function
  if (!interactive() && isFALSE(as.logical(Sys.getenv("NOT_CRAN", "false")))) {
    Sys.setenv("OMP_THREAD_LIMIT" = 2)
  }
}

# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
#' @importFrom lifecycle deprecated
## usethis namespace: end
NULL

Try the r2dii.analysis package in your browser

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

r2dii.analysis documentation built on Oct. 23, 2023, 5:08 p.m.