R/zzz.R

Defines functions .onDetach .onAttach .onLoad

# nocov start
.onLoad <- function(libname, pkgname) {
  # Set progress default
  op <- options()
  op_mpathsenser <- list(
    mpathsenser.show_progress = TRUE
  )
  toset <- !(names(op_mpathsenser) %in% names(op))
  if (any(toset)) options(op_mpathsenser[toset])

  rlang::run_on_load()

  invisible(NULL)
}

.onAttach <- function(libname, pkgname) {
  # Empty for now...
}

.onDetach <- function(libpath) {
  # Empty for now...
}
# nocov end

Try the mpathsenser package in your browser

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

mpathsenser documentation built on May 29, 2024, 9:11 a.m.