(PR#1274) [Rd] data(): Error in FUN(X[[2]], ...) : subscript
ripley@stats.ox.ac.uk
ripley@stats.ox.ac.uk
Tue, 22 Jan 2002 11:25:49 +0100 (MET)
data() is making assumptions about the structure of the 00Index files
that are not warranted. All `Writing R Extensions' says is
The @file{data} subdirectory should also contain
a @file{00Index} file that describes the datasets available. Ideally
this should have a one-line description of each dataset, with full
documentation in the @file{man} directory.
whereas data() is assuming it is in a two-column format as generated by
Rdindex. Those packages contain other information in the file, which they
are allowed to do. More precisely, read.00Index is documented as
Read item/description information from 00Index-style files. Such
files are description lists rendered in tabular form, and
currently used for the object, data and demo indices and `TITLE'
and that's not required.
On Tue, 22 Jan 2002 kleiweg@let.rug.nl wrote:
>
> When I do:
>
> > data()
>
> ... I get:
>
> Data sets in package `base':
>
> Formaldehyde Determination of Formaldehyde concentration
>
> [cut]
>
> women Heights and Weights of Women
>
>
> Use `data(package = .packages(all.available = TRUE))'
> to list the data sets in all *available* packages.
>
>
>
> When I do as suggested:
>
> > data(package = .packages(all.available = TRUE))
>
> ... I get:
>
> Error in FUN(X[[2]], ...) : subscript out of bounds
> In addition: Warning message:
> packages `class', `ctest', `eda', `foreign', `lqs',
> `methods', `mgcv', `nnet', `splines', `stepfun', `tcltk',
> `tools' contain no datasets in: data(package =
> .packages(all.available = TRUE))
>
>
> Packages that cause trouble:
>
> > data(package = "boot")
> Error in FUN(X[[2]], ...) : subscript out of bounds
>
> > data(package = "rpart")
> Error in FUN(X[[2]], ...) : subscript out of bounds
>
> > data(package = "spatial")
> Error in FUN(X[[2]], ...) : subscript out of bounds
>
>
> Version:
> platform = i586-pc-linux-gnu
> arch = i586
> os = linux-gnu
> system = i586, linux-gnu
> status =
> major = 1
> minor = 4.0
> year = 2001
> month = 12
> day = 19
> language = R
>
> Search Path:
> .GlobalEnv, package:ctest, Autoloads, package:base
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Brian D. Ripley, ripley@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-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._