R-packet data leak

In one of my R packages, I have some silly examples of data that I would like to delete. To do this, I would like to first follow the generally accepted principle in order to condemn it, and then stop it.

To remove functions from the R-package, I found a way as follows:

oldFunc <- function() { .Deprecated("newFunc") } 

followed by (say 6 months)

 oldFunc <- function() { .Defunct("newFunc") } 

And then after another 6 months I could remove the function from the package.

However, how do I delete a data object saved as /data/myData.rda in a package, and which also has a description of myData.Rd ?

+5
source share
1 answer

In addition to using .Deprecated and .Defunct you should also

  • delete the data set from data/ . Users can get archived versions from CRAN
  • add note in NEWS / CHANGELOG

To be useful to future readers, the answer is a summary of comments on the original question.

0
source

Source: https://habr.com/ru/post/1234375/


All Articles