[R] RWin 1.2.1: Can't access sample datasets, e.g. MASS
Thomas Lumley
tlumley at u.washington.edu
Tue Feb 6 01:43:31 CET 2001
On Mon, 5 Feb 2001, peter denisevich wrote:
> I'm pretty sure I'll feel like [more of] an idiot but...
> Using Rgui working in a fresh, blank directory.
>
>
> > require(MASS)
> Loading required package: MASS
> [1] TRUE
> > data(cabbages)
> Warning message:
> ======> Data set `cabbages' not found in: data(cabbages) <=====
<snip>
>
> Same result for any other dataset.
I get this for MASS only, not for other packages
> All packages were installed in RW1021/library/<pkg>, some by manual
> download/rinst some by install.packages().
>
> Note that after installation, the library/MASS/data directory contained
> ONLY RData.zip, so I unzipped it; the same for the other data (and R-ex)
> directories in the tree. Is this new behavior?
Yes, RData.zip is deliberate. It saves space (particularly with a FAT16
disk, where little files are very inefficient). In general, if the
installer puts it there you should leave it there.
However, there does seem to be a bug in the packaging of the current MASS
version. The data/filelist file, which is supposed to give the contents of
RData.zip actually has the contents of the data/ directory.
As a workaround If you edit this file to list the contents of RData.zip
(or just the files you want to load), data() will work.
-thomas
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list