R/zzz.R

Defines functions .onLoad

# Modify with care!
# The file is to load startup file automatically when the package is loaded.

.onLoad <- function(libname, pkgname) {
  startup <- system.file("startup.R", package = pkgname)

  if (file.exists(startup)) {
    source(startup)
  } else {
    stop("Can not find", startup)
  }

  invisible(startup)
}
RConsortium/submissions-pilot1 documentation built on Feb. 25, 2024, 6:14 a.m.