Bisaloo/datadeprecation

Demo for how to add deprecation warning to an R package data

★ 1Forks 0RezGitHub ↗Compare

README

datadeprecation

R-CMD-check

This is a minimal demo package to illustrate how one would add deprecation warnings to data components of an R package

Example

The deprecation warning in action

library(datadeprecation)
# No warning yet.
data("mydata")
# The warning is triggered when the data is actually used.
mydata
#> Warning: The dataset `mydata` is deprecated and will be removed in a future
#> version of `datadeprecation`. Instead, please use ...
#>  [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s"
#> [20] "t" "u" "v" "w" "x" "y" "z"

Contributors

Bisaloo

Issues