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

peter denisevich pdenis2 at home.com
Tue Feb 6 06:08:37 CET 2001

[I had intended to CC: this to r-help when I replied to Prof. Lumley...]
>Date: Mon, 05 Feb 2001 17:00:43 -0800
>To: Thomas Lumley <tlumley at u.washington.edu>
>From: peter denisevich <pdenis2 at home.com>
>Subject: Re: [R] RWin 1.2.1:  Can't access sample datasets, e.g. MASS
>Many thanks,
>I generated a correct filelist using (ugh) DOS's dir and then awk.  You 
>are correct, though, it's just MASS that's affected.  I was (in my 
>confusion) trying to load some .R scripts as data() for some other packages.
>At 04:43 PM 2/5/01 -0800, you 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)  <=====
>> >
>> > 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