R/zzz.R

Defines functions weo_cache_reset .onLoad

Documented in weo_cache_reset

.weo_cache <- new.env(parent = emptyenv())

.onLoad <- function(libname, pkgname) {
  .weo_cache$latest_publication <- NULL
  .weo_cache$year <- NULL
  .weo_cache$release <- NULL
  .weo_cache$bulk <- NULL
  invisible(TRUE)
}

#' Reset the Cache
#'
#' @return No return value, called for side effects.
#'
#' @export
weo_cache_reset <- function() {
  .weo_cache$latest_publication <- NULL
  .weo_cache$year <- NULL
  .weo_cache$release <- NULL
  .weo_cache$bulk <- NULL
  invisible(TRUE)
}

Try the imfweo package in your browser

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

imfweo documentation built on Aug. 23, 2025, 1:13 a.m.