R/zzz.R

Defines functions .onUnload .onLoad

.onLoad <- function(libname, pkgname) {
  # Set package-specific options
  options(
    icecream.enabled = TRUE,
    icecream.prefix = "ic|",
    icecream.output.function = NULL,
    icecream.peeking.function = ic_autopeek,
    icecream.max.lines = 1,
    icecream.arg.to.string.function = NULL,
    icecream.always.include.context = FALSE
  )
}

.onUnload <- function(libpath) {
  # Unset package-specific options
  options(
    icecream.enabled = NULL,
    icecream.prefix = NULL,
    icecream.output.function = NULL,
    icecream.peeking.function = NULL,
    icecream.max.lines = NULL,
    icecream.arg.to.string.function = NULL,
    icecream.always.include.context = NULL
  )
}

Try the icecream package in your browser

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

icecream documentation built on Sept. 27, 2023, 5:08 p.m.