R/deprec-reporter.R

Defines functions context_data

Documented in context_data

#' Deprecated reporter functions
#'
#' @description
#'
#' `r lifecycle::badge("soft-deprecated")`
#'
#' These functions are deprecated.
#'
#' See [Get/set test data][global-data] for working with global test data.
#'
#' @inheritParams global-data
#' @name reporter-deprec
#' @keywords internal
NULL

#' @export
#' @rdname reporter-deprec
#' @seealso [Get/set test data][global-data]
context_data <- function(data) {
  lifecycle::deprecate_soft("0.3.0", "context_data()", "set_testdata()")
  set_testdata(data)
}

Try the testdat package in your browser

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

testdat documentation built on Sept. 4, 2023, 1:06 a.m.