From ce6257802932431714b31979de79ecde56152053 Mon Sep 17 00:00:00 2001 From: Rammprasad Ganapathy Date: Tue, 27 Aug 2024 04:50:48 +0000 Subject: [PATCH] Doubtful fix for CRAN comments. --- NAMESPACE | 2 -- R/clear_cache.R | 19 ------------------- R/zzz.R | 3 --- man/clear_cache.Rd | 25 ------------------------- 4 files changed, 49 deletions(-) delete mode 100644 R/clear_cache.R delete mode 100644 R/zzz.R delete mode 100644 man/clear_cache.Rd diff --git a/NAMESPACE b/NAMESPACE index 613c9be0..2dc0c0f3 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -8,12 +8,10 @@ export("%.>%") export(assign_ct) export(assign_datetime) export(assign_no_ct) -export(clear_cache) export(condition_add) export(create_iso8601) export(ct_map) export(ct_spec_example) -export(ct_spec_vars) export(derive_blfl) export(derive_seq) export(derive_study_day) diff --git a/R/clear_cache.R b/R/clear_cache.R deleted file mode 100644 index 047bd23e..00000000 --- a/R/clear_cache.R +++ /dev/null @@ -1,19 +0,0 @@ -#' Clear `{sdtm.oak}` cache of memoised functions -#' -#' @description -#' Some of `{sdtm.oak}` functions have their results cached for runtime -#' efficiency. Use this function to reset the cache. -#' -#' Memoised functions: -#' - [ct_mappings()] -#' -#' @return Returns a logical value, indicating whether the resetting of the -#' cache was successful (`TRUE`) or not (`FALSE`). -#' -#' @examples -#' clear_cache() -#' -#' @export -clear_cache <- function() { - memoise::forget(ct_mappings) -} diff --git a/R/zzz.R b/R/zzz.R deleted file mode 100644 index e05837ee..00000000 --- a/R/zzz.R +++ /dev/null @@ -1,3 +0,0 @@ -.onLoad <- function(libname, pkgname) { - ct_mappings <<- memoise::memoise(ct_mappings) -} diff --git a/man/clear_cache.Rd b/man/clear_cache.Rd deleted file mode 100644 index 212f245e..00000000 --- a/man/clear_cache.Rd +++ /dev/null @@ -1,25 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/clear_cache.R -\name{clear_cache} -\alias{clear_cache} -\title{Clear \code{{sdtm.oak}} cache of memoised functions} -\usage{ -clear_cache() -} -\value{ -Returns a logical value, indicating whether the resetting of the -cache was successful (\code{TRUE}) or not (\code{FALSE}). -} -\description{ -Some of \code{{sdtm.oak}} functions have their results cached for runtime -efficiency. Use this function to reset the cache. - -Memoised functions: -\itemize{ -\item \code{\link[=ct_mappings]{ct_mappings()}} -} -} -\examples{ -clear_cache() - -}