R/3_onAttach.R

Defines functions .onAttach

#' @import data.table
.onAttach <- function(libname, pkgname) {
  version <- tryCatch(
    utils::packageDescription("csmaps", fields = "Version"),
    warning = function(w){
      1
    }
  )

  packageStartupMessage(paste0(
    "csmaps ",
    version,
    "\n",
    "https://www.csids.no/csmaps/"
  ))
}

Try the csmaps package in your browser

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

csmaps documentation built on Aug. 21, 2025, 5:26 p.m.