Dear list members, I've been working on an R package, which I just checked and built with the new tools in the Windows version of R 1.2.0. (These tools are wonderful, by the way.) Everything went fine, except that cross-references that I tried to create to help pages in other packages don't work. Page 14 of Writing R Extensions says: "There are optional arguments specified as \link[pkg]{foo} and \link[pkg:bar]{foo} to link to the package pkg with topic (file?) foo and bar respectively." I thought that I understood this passage (with the exception of the parenthetical question, which is in the original text), but, for example, \link[base]{hist} fails to create a link to the documentation for hist in the base package. I've screwed around with this for a while with no success. Any help would be appreciated. Thanks, John ________________________________ John Fox Department of Sociology McMaster University email: jfox at McMaster.ca web: www.socsci.mcmaster.ca/jfox ________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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, 19 Dec 2000, John Fox wrote:> Dear list members, > > I've been working on an R package, which I just checked and built with the > new tools in the Windows version of R 1.2.0. (These tools are wonderful, by > the way.) Everything went fine, except that cross-references that I tried > to create to help pages in other packages don't work. > > Page 14 of Writing R Extensions says: > > "There are optional arguments specified as \link[pkg]{foo} and > \link[pkg:bar]{foo} to link to the package pkg with topic (file?) foo and > bar respectively." > > I thought that I understood this passage (with the exception of the > parenthetical question, which is in the original text), but, for example, > \link[base]{hist} fails to create a link to the documentation for hist in > the base package. > > I've screwed around with this for a while with no success. Any help would > be appreciated.Remember you are on Windows, and there links only work for packages installed in the main library directory (point 3.3 of the rw-FAQ). I think you will find the links do work, once you install there. They do for me. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear Brian, At 07:31 AM 20/12/2000 +0000, you wrote:>Remember you are on Windows, and there links only work for packages >installed in the main library directory (point 3.3 of the rw-FAQ). >I think you will find the links do work, once you install there. >They do for me.I had installed my package to the main library directory, and I did use link.html.help (as mentioned in the rw-FAQ) after installing the library. The problem was that I was using *compiled* html help rather than html help, and didn't realize that links were created only for the latter. The html help works fine. Thanks for your response -- you pointed me to the source of the problem. John ________________________________ John Fox Department of Sociology McMaster University email: jfox at McMaster.ca web: www.socsci.mcmaster.ca/jfox ________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._