R/zzz.R

Defines functions .onAttach .onLoad

.onLoad <- function(...) {
  op <- options()
  if (!"epiflows.vars" %in% names(op)) {
    invisible(global_vars(reset = TRUE))
  } else {
    invisible(global_vars(set = TRUE))
  }
}

.onAttach <- function(...) {
  msg <- sprintf("epiflows is loaded with the following global variables in `global_vars()`:\n%s",
                 paste(global_vars(), collapse = ", ")
                 )
  packageStartupMessage(msg)
}

Try the epiflows package in your browser

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

epiflows documentation built on April 10, 2023, 5:06 p.m.