R/utils.R

Defines functions with_options with_verbose

# nocov start
# only used in testing
with_verbose <- function(code) {
  with_options(c(fuj.verbose = TRUE), code)
}
# nocov end

with_options <- function(op, code) {
  op <- do.call(options, as.list(op))
  on.exit(options(op))
  force(code)
}

Try the fuj package in your browser

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

fuj documentation built on June 8, 2025, 10:23 a.m.