R/deprecate.R

#' Deprecated functions
#'
#' The "See also" section contains the deprecated functions in this package.
#' @family deprecated functions
#' @name kimisc-deprecated
NULL

#' @importFrom memoise memoise
deprecate <- memoise(function(new, old = as.character(sys.call(sys.parent()))[1L]) {
  message("`", old, "()` is deprecated, use `", new, "()` instead.")
})

Try the kimisc package in your browser

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

kimisc documentation built on May 2, 2019, 4:01 a.m.