[Rd] data(package = "..") gives extraneous warning (PR#1024)

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Sat, 14 Jul 2001 11:40:53 +0200

>>>>> maechler  writes:

> Not too hard to fix, the following buglet (new in 1.3.0),
> but I'm about to leave for one week (of vacation)..

> Here is an example (for Linux) :

>   lynne{sfs}214> cd /tmp
>   lynne{sfs}215> mkdir blue
>   lynne{sfs}216> cd blue
>   /tmp/blue
>   lynne{sfs}217> echo 'data(package = "mva")'|R-1.3.0 --vanilla

>   R : Copyright 2001, The R Development Core Team
>   Version 1.3.0  (2001-06-22)

>   R is free software and comes with ABSOLUTELY NO WARRANTY.
>   You are welcome to redistribute it under certain conditions.
>   Type `license()' or `licence()' for distribution details.

>   R is a collaborative project with many contributors.
>   Type `contributors()' for more information.

>   Type `demo()' for some demos, `help()' for on-line help, or
>   `help.start()' for a HTML browser interface to help.
>   Type `q()' to quit R.

>> data(package = "mva")
>   Data sets in package `mva':

>   Harman23.cor             Harman Example 2.3
>   Harman74.cor             Harman Example 7.4
>   ability.cov              Ability and Intelligence Tests

>   Warning message: 
>   package `blue' contains no datasets in: data(package = "mva") 
> -------------------

> See the warning line at the very end.  It's because of the new data()
> feature of looking for data sets in the current directory...

Don't think that this is a new feature ...

Anyway, fixed now.  Nevertheless, the idea of also looking for data sets
in the working directory needs rethinking.  Do we really want this?  If
so, then e.g. we need to fix warnings if there is a data dir but no
index (the working dir is not simply a `package' ...).


r-devel 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-devel-request@stat.math.ethz.ch