R/deprecated.R

Defines functions is.nlists is.nlist is.natomic

Documented in is.natomic is.nlist is.nlists

#' Deprecated Functions
#'
#' @inheritParams params
#' @keywords internal
#' @name deprecated
NULL

#' @describeIn deprecated Is natomic
#'
#' \lifecycle{soft-deprecated}
#'
#' Replace by [is.numeric()]
#' @export
is.natomic <- function(x) {
  deprecate_warn("0.1.1",
    what = "nlist::is.natomic()",
    with = "nlist::is_numeric()"
  )
  is_numeric(x)
}

#' @describeIn deprecated Is nlist
#'
#' \lifecycle{soft-deprecated}
#'
#' Replace by [is_nlist()]
#' @export
is.nlist <- function(x) {
  deprecate_warn("0.1.1",
    what = "nlist::is.nlist()",
    with = "nlist::is_nlist()"
  )
  is_nlist(x)
}

#' @describeIn deprecated Is nlists
#'
#' \lifecycle{soft-deprecated}
#'
#' Replace by [is_nlists()]
#' @export
is.nlists <- function(x) {
  deprecate_warn("0.1.1",
    what = "nlist::is.nlists()",
    with = "nlist::is_nlists()"
  )
  is_nlists(x)
}

Try the nlist package in your browser

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

nlist documentation built on June 8, 2025, 9:41 p.m.