On Tue, 9 Mar 1999, Michael Meyer wrote:
> I think this is because the example function is looking at the first
> column of the AnIndex file instead of the second column. If one
> changes,
> file <- system.file(paste("R-ex", directory.sep,
> AnIndex[2 * i], ".R", sep =
""), pkg = pkg,
>
> to
>
> file <- system.file(paste("R-ex", directory.sep,
> AnIndex[2 * i+1], ".R", sep =
""), pkg = pkg,
>
> it seems to work for me. (Note the fix has [2 * i + 1])
This was discussed on another R list earlier today. We think the fix is
AnIndex <- scan(AnIndexF, what = c("c", "c"),
quiet = TRUE,
sep="\t")
as there are names in the index with spaces in that get this read
incorrectly. The Windows versions have had this fix for some time.
This only AFAIK applies to examples in the base package.
Brian
--
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._