[R] RWin 1.2.1: Can't access sample datasets, e.g. MASS

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Feb 6 08:40:35 CET 2001


On Mon, 5 Feb 2001, Thomas Lumley wrote:

> 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.

There must also be a `filelist' file 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.

The bug happened for a day or two in early January, but it's not current.
Look at the DESCRIPTION file. It ends

Built: R 1.2.0;  Win32;  2001-01-08 20:37:22

in the current version, which does have the correct files in MASS/data.



-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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