R/zzz.R

Defines functions .onLoad

# nocov start

.onLoad = function(libname, pkgname) {
  # Mimicked dplyr (https://github.com/tidyverse/dplyr/blob/main/R/zzz.R).

  op <- options()
  op.expstudy <- list(
    expstudy.default_measure_regexs = list(
      actuals = '_?ACTUAL_?',
      exposures = '_?EXPOSURE_?',
      expecteds = '_?EXPECTED_?',
      variances = '_?VARIANCE_?'
    ),
    expstudy.default_measure_set_prefixes = NULL,
    expstudy.default_measure_set_suffixes = c('CNT', 'AMT')
  )
  toset <- !(names(op.expstudy) %in% names(op))
  if (any(toset)) options(op.expstudy[toset])

  invisible()
}

# nocov end

Try the expstudy package in your browser

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

expstudy documentation built on May 29, 2024, 4:05 a.m.