R/3_onAttach.R

Defines functions dummy_function .onAttach

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

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

dummy_function <- function() {
  cstime::isoyearweek_to_isoweek_c("2021-01")
}

Try the cstidy package in your browser

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

cstidy documentation built on May 31, 2023, 7:25 p.m.