R/deprecated.R

Defines functions deprecate_warn

##' Deprecated functions in orderly. These functions still work (*for
##' now*) but will be removed shortly.  Please update your code.
##'
##' * `orderly_location_pull_packet`; please use [orderly_location_pull()]
##' * `orderly_location_pull_metadata`; please use
##'   [orderly_location_fetch_metadata()]
##'
##' @param ... Arguments forwarded to the new version
##' @return See the linked pages above for the current return type.
##' @rdname orderly-deprecated
##' @name orderly-deprecated
NULL


deprecate_warn <- function(old, new, body = NULL) {
  cli::cli_warn(
    c(paste("'{old}()' is deprecated and will be removed soon, please",
            "use '{new}()' instead"),
      body),
    .frequency = "regularly",
    .frequency_id = paste0("orderly_deprecate:", old))
}

Try the orderly package in your browser

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

orderly documentation built on Jan. 24, 2026, 1:07 a.m.