R/onLoad.R

Defines functions .onLoad

# @importFrom parallel detectCores
.onLoad <- function(libname, pkgname) {
  
  Sys.setenv(
    
    '_R_CHECK_LIMIT_CORES_' = 'false',
    # otherwise ?parallel:::.check_ncores causes error when ?devtools::check
    
    '_R_CHECK_SYSTEM_CLOCK_' = 0
    # https://stackoverflow.com/questions/63613301/r-cmd-check-note-unable-to-verify-current-time
    # to disable "checking for future file timestamps" in R Check
    
  ) 
  
  options(
    
    # mc.cores = switch(.Platform$OS.type, windows = 1L, detectCores()),
    
    use_unicode = TRUE
    
  )

    
  
}

Try the DemographicTable package in your browser

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

DemographicTable documentation built on June 13, 2025, 5:09 p.m.