[R] help files for libraries that aren't in the defaults library tree
J. Andy Royle
jar at oriole.er.usgs.gov
Tue Dec 1 13:59:42 CET 1998
Hello,
I created a library for a bunch of functions that I use frequently
so that I dont have to carry duplicate copies around to wherever I fire
up an R sesssion. However, I have problems locating the help files
for those functions. Here are some details.
I created the library "myR" and installed this in /home/royle/R
using:
R INSTALL -l /home/royle/R /home/royle/Rpackages/myR
This went well, and I can access all of those functions in the
usual way....i.e. like:
library(myR,lib.loc="/home/royle/R/")
But, I found that to get the help files I have to type:
help(interp,lib.loc="/home/royle/R/")
and so it is kind of a pain to have to specify the lib.loc argument
every time I want to see a help file (not like I need to see the
help files because I wrote the functions, but I can imagine this
to be a pain for anyone who installs a package into a library tree
other than the defaults).
In any case, I went on an installed the library in $RHOME/library
and everything seems to work out ok. But, I think that generally
one would need root access to install to RHOME/library and so folks
might be inclined to install elsewhere.
The question: is there a way to make these help files accessible
when installed in a something other than the default library tree
_without_ using the lib.loc option in help?
Possible solution: It seems to me that I could add my new library tree
to .lib.loc but wouldn't I have to create a new .lib.loc in every R session?
Thanks in advance for assistance.
andy
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list