Skip to content
Prev 59062 / 63421 Next

Issue with data() function

On 23/10/2020 9:25 p.m., Therneau, Terry M., Ph.D. via R-devel wrote:
You don't describe how this dataset is being included in your package. 
Have you moved it from data/lung.rda to data/cancer.rda?  Currently (in 
survival 3.2-7) each of these works for me:

  library(survival); data(lung)

  library(survival); data("lung")

  # Without library(survival):
  data(lung, package="survival")

I think if the lung dataset is now being included in cancer.rda, you'd need

   data(cancer, package="survival")

or equivalent to load it (and the rest of the datasets there).
Maybe the solution is to put your datasets into the "datasets" package, 
or make "survivaldata" a recommended package, or just leave things as 
they are and ignore the warnings about package size.  I think that's a 
negotiation you should have with R Core.

Duncan Murdoch