R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  # modifies packages namespace (not global environment)
  exoplanets <<- memoise::memoise(exoplanets)

  # allows setting custom options for this package
  op <- options()
  op.exoplanets <- list(
    exoplanets.quiet = FALSE,
    exoplanets.progress = TRUE
  )
  toset <- !(names(op.exoplanets) %in% names(op))
  if(any(toset)) options(op.exoplanets[toset])
}

Try the exoplanets package in your browser

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

exoplanets documentation built on July 24, 2021, 5:07 p.m.