R/zzz.R

Defines functions .onAttach .onLoad

.onLoad <- function(libname, pkgname) {
  
}

.onAttach <- function(libname, pkgname) {
  
  packageStartupMessage(
    "For more information on using BIOMASS, visit https://umr-amap.github.io/BIOMASS\n"
  )
  
  basePath <- cachePath()
  
  if(attr(basePath, "source")=="temp") {
    packageStartupMessage(
      "Using temporary cache",
      "\n  It is recommended to use a permanent cache to avoid to re-download files on each session.",
      "\n  See function createCache() or BIOMASS.cache option."
    )
  }
  
  if(attr(basePath, "source")=="data") {
    packageStartupMessage(
      "Using user data cache ", basePath,
      "\n  To clear or remove cache see function clearCache()."
    )
  }
}

Try the BIOMASS package in your browser

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

BIOMASS documentation built on April 3, 2025, 6:09 p.m.