[Rd] strange warning: data() error?

David Winsemius dwinsemius at comcast.net
Tue Apr 17 00:20:16 CEST 2018

> On Apr 16, 2018, at 2:58 PM, Therneau, Terry M., Ph.D. via R-devel <r-devel at r-project.org> wrote:
> A user asked me about this and I can't figure it out.
> tmt% R
> R Under development (unstable) (2018-04-09 r74565) -- "Unsuffered Consequences"
> Copyright (C) 2018 The R Foundation for Statistical Computing
> Platform: x86_64-pc-linux-gnu (64-bit)
> > library(survival)
> > data(cgd0)
> Warning message:
> In data(cgd0) : data set ‘cgd0’ not found
> ----
> The data set is present and can be manipulated: data() is not required.  Other data sets in the survival package don't generate this message.

On a Mac the Data Manager panel lists that dataset as "cgd0 (cgd)" and I get the same warning with any dataset that has a similar appearance of <name paren-name-paren> , even the `state.abb` vector that is displayed "state.abb (state)" (without the quotes.)

> data('state.abb')
Warning message:
In data("state.abb") : data set ‘state.abb’ not found
> str(state.abb)
 chr [1:50] "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" ...
> data(stack.loss)
Warning message:
In data(stack.loss) : data set ‘stack.loss’ not found

So I guess the message is don't feel picked upon. It seems to be an infelicity shared by many other datasets even those in the canonical 'datasets' package.

> Terry T.
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law

More information about the R-devel mailing list