A.J. Rossini
2000-Nov-02 19:45 UTC
[Rd] how to extract directory with HTML version of help pages?
Is there a simple way to determine at run-time the directory with HTML version of help pages? (to see where I'm heading here, if you've got w3 installed under (X)Emacs on Unix _or_ a Microsoft OS, do w3-find-file and load $(R_HOME)/library/html/whateverfunction.html It's slightly nicer than the standard ESS text-help. best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics BlindGlobe Networks (home/default) rossini@blindglobe.net UW Biostat/Center for AIDS Research rossini@u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini@scharp.org FHCRC: M/Tu: 206-667-7025 (fax=4812) | Voicemail is pretty sketchy CFAR: W/F: 206-731-3647 (fax=3694) | Email is far better than phone UW: Th/F: 206-543-1044 (fax=3286) | Change last 4 digits of phone for fax -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian D Ripley
2000-Nov-02 19:58 UTC
[Rd] how to extract directory with HTML version of help pages?
On 2 Nov 2000, A.J. Rossini wrote:> Is there a simple way to determine at run-time the directory with HTML > version of help pages?The short answer is `no', for the directory depends on the help page!> (to see where I'm heading here, if you've got w3 installed under > (X)Emacs on Unix _or_ a Microsoft OS, do > w3-find-file > and load > $(R_HOME)/library/html/whateverfunction.htmlBut it's whateverlibrary/package/html/whateverfunction.html You both overlooked the package part and the possibility of multiple libraries. (To make sure we have the terminology straight, in R there are libraries of packages, and in S libraries of sections (S3) or chapters (S4). I didn't invent this ....) Since ESS apparently asks R for the text help page (or it does it just grab the contents?), it could in principle do the same for the html help page. That is, help could be asked when running under ESS to return the filename, not send the file to the OS to be viewed (Windows) or call `browser -remote "openURL(foo.html)' on it. As far as I can see only the running R session can do this correctly, and it tooks several goes to get it right (if we have). What the right file is depends on the history of the R session. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._