R/zzz.R

Defines functions .onLoad

manage_cache <- NULL # nocov start

.onLoad <-
  function(libname = find.package("getCRUCLdata"),
           pkgname = "getCRUCLdata") {
    # CRAN Note avoidance
    if (getRversion() >= "2.15.1") {
      utils::globalVariables(c("."))

      x <- hoardr::hoard()
      x$cache_path_set(path = "getCRUCLdata", type = "user_cache_dir")
      manage_cache <<- x
    }
  } 

#' @import data.table
NULL

# nocov end
adamhsparks/getCRUCLdata documentation built on April 1, 2024, 5:51 p.m.