R/options.R

Defines functions nestr_opt

op.nestr <- list(
  nestr.leading_zero = FALSE
)

nestr_opt <- function(x, prefix = "nestr.") {
  if(missing(x)) {
    op.nestr
  } else {
    opt_name <- paste0(prefix, x)
    res <- getOption(opt_name)
    if(!is_null(res)) return(res)
    op.nestr[[opt_name]]
  }
}

Try the nestr package in your browser

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

nestr documentation built on Feb. 2, 2022, 1:07 a.m.