Deprecation in R
After my recent article on marking deprecated code in Python, I had to do the same thing in R. It’s included in the language (in The R Base Package).
To deprecate an object simply make a call to the
It will produce a warning—that can be suppressed by users by calling
It’s also possible to signal that an object has been removed through a call to
In this case it will produce an error, in other terms the program will stop working.