.First.lib

Paul Gilbert pgilbert@bank-banque-canada.ca
Mon, 22 Jun 1998 09:32:56 -0400


> > There seems to be a minor problem in .First.lib: the library argument
> > is all of $RLIBS. I think it should be just the one directory from
> > which the package is being taken.

> `all of $RLIBS' meaning the full path to the element of lib.loc where
> the package was found?  This is definitely right.  Otherwise, you do not
> have enough information to find e.g. an `.so' file to be loaded by
> library.dynam().

By "all of  $RLIBS" I meant all of the paths in $RLIBS, in my case

> .lib.loc
[1] "/home/res/gilp/dse/pub/Rdse/rlibs"
[2] "/home/res/gilp/padi/my.production/rlibs"
[3] "/home/res8/gilp/R-versions/R-0.62.1/library"
>
However, when I do library("dse") it is using a package in [1] and when
.First.lib for dse is executed I would like the "library" argument to be set to
.lib.loc[1] (in this case) not to  the three element vector .lib.loc.

Paul

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._