maechler@stat.math.ethz.ch
1999-Mar-09 09:33 UTC
example(.) partly broken (since 0.63.3) --> patch (PR#134)
(I don't have time just now to diagnose & fix..) In R 0.63.3 [both on Solaris and Linux] > example(outer) Error: Couldn't find 'outer' example whereas this worked in 0.63.2. NON-exhaustive `research' [i.e. small sample out of about 1000]: o examples that stopped working (in 0.63.3 and did before) kronecker, outer, vector, Im o Examples working .Alias, "%in%", lm, glm, lsfit, unix, Re, ... (most?) It really is the 'AnIndex' file which is broken, either because of incorrect syntax in changed *.Rd files or because the AnIndex building scripts are broken or not robust enough.. My "AnIndex" (i.e. RINSTALL/library/base/help/AnIndex) has line 482 ----------------------------- glm summaries glm.summaries ----------------------------- which then is scan()ed as 3 character strings instead of 2, and then everything following is mixed up...... Other (not necessarily all) such bad lines are ----------------------------- lm summaries lm.summaries nrow, ncol nrow QR Auxiliaries qraux ----------------------------- However, it seems sufficient [for example() at least] to patch its source by using scan("..../AnIndex" ..) with sep = "\t" : --- src/library/base/R/source.R.~1~ Wed Dec 2 11:39:22 1998 +++ src/library/base/R/source.R Tue Mar 9 10:27:38 1999 @@ -122,7 +122,7 @@ AnIndexF <- system.file(paste("help","AnIndex",sep=directory.sep), pkg, lib) if(AnIndexF != "") { - AnIndex <- scan(AnIndexF,what=c("c","c"),quiet=TRUE) + AnIndex <- scan(AnIndexF,what=c("c","c"),sep="\t",quiet=TRUE) i <- match(topic,AnIndex[seq(1,length(AnIndex),2)],-1) if(i != -1) file <- system.file(paste("R-ex",directory.sep,AnIndex[2*i], Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum SOL G1; Sonneggstr.33 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1086 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
maechler@stat.math.ethz.ch
1999-Mar-09 09:47 UTC
example(.) partly broken (since 0.63.3) --> patch (PR#134)
I think one should also apply the following patch in order to get the HTML indices right.. when AnIndex is allowed to contain spaces " " in addition to the separating "\t" : --- etc/buildlib.pl.~1~ Wed Mar 3 17:35:42 1999 +++ etc/buildlib.pl Tue Mar 9 10:41:15 1999 @@ -168,7 +168,7 @@ if(-r "$lib/$pkg/help/AnIndex"){ open ranindex, "< $lib/$pkg/help/AnIndex"; while(<ranindex>){ - /^(\S*)\s*\t(.*)/; + /^([^\t]*)\s*\t(.*)/; $htmlindex{$1} = "$pkg/html/$2.$HTML"; } close ranindex; @@ -195,7 +195,7 @@ if(-r "$lib/$pkg/help/AnIndex"){ open ranindex, "< $lib/$pkg/help/AnIndex"; while(<ranindex>){ - /^(\S*)\s*\t(.*)/; + /^([^\t]*)\s*\t(.*)/; $anindex{$1} = $2; } close ranindex; ---------------------- ((and yes, I *did* diagnose and fix most of the problem in spite of my introductory remark in the last message...)) Martin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._