Deprecated

0th

Percentile

Marking Objects as Deprecated

When an object is about to be removed from R it is first deprecated and should include a call to .Deprecated.

Keywords
utilities, documentation
Usage
.Deprecated(new, package=NULL, msg, old = as.character(sys.call(sys.parent()))[1L])
Arguments
new
character string: A suggestion for a replacement function.
package
character string: The package to be used when suggesting where the deprecated function might be listed.
msg
character string: A message to be printed, if missing a default message is used.
old
character string specifying the function (default) or usage which is being deprecated.
Details

.Deprecated("") is called from deprecated functions. The original help page for these functions is often available at help("oldName-deprecated") (note the quotes). Functions should be listed in help("pkg-deprecated") for an appropriate pkg, including base.

See Also

Defunct

base-deprecated and so on which list the deprecated functions in the packages.

Aliases
  • Deprecated
  • .Deprecated
  • deprecated
Documentation reproduced from package base, version 3.3, License: Part of R @VERSION@

Community examples

Looks like there are no examples yet.