On my system> version_ platform sparc-sun-solaris2.5 arch sparc os solaris2.5 system sparc, solaris2.5 status status.rev 0 major 0 minor 63.3 year 1999 month March day 6 language R the example() function seems to have a bug. Specifically commands such as example(layout) fail, even though there is a layout example. The problem seems to be that the example function tries to open (in this case) layout.show.R instead of layout.R. 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]) Mike Meyer, Applied Statistics, The Boeing Company (and yes, I am the same person who used to be at Carnegie Mellon) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Reasonably Related Threads
- example(.) partly broken (since 0.63.3) --> patch (PR#134)
- Binary packagers: BSD license issues
- All "GNU" software potentially Trojaned
- CERT Advisory CA-98.13 - TCP/IP Denial of Service (fwd)
- CERT Advisory CA-99.14 - Multiple Vulnerabilities in BIND (fwd)