R/zzz.R

Defines functions .onUnload .onAttach

.onAttach <- function(...){
  options("cheapr.cores" = getOption("cheapr.cores", 1),
          "cheapr.digits" = getOption("cheapr.digits", 2))
}
.onUnload <- function(libname, pkgname){
  options(cheapr.cores = NULL,
          cheapr.digits = NULL)
}

Try the cheapr package in your browser

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

cheapr documentation built on April 4, 2025, 4:25 a.m.