[R] a question about sgeostat

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue May 30 08:17:11 CEST 2000


Matthew had already said that re-installing solved this for him.

On Tue, 30 May 2000, Albrecht Gebhardt wrote:

> I just tried installing tripack on RedHat 6.2 (gcc 2.95.2) into a private
> R_LIBS dir, the same thing:
> 
> > library(tripack,lib.loc="~/R-Lib-x86")
> Error in library.dynam("tripack") : dynamic library `tripack' not found
> 
> But 
> 
> > library.dynam("tripack",lib.loc="~/R-Lib-x86") 
> 
> works and after rm(.lib.loc) and setting R_LIBS to "~/R-Lib-x86" it works
> without errors via
> 
> > library(tripack)
> 
> So I guess you may also have some trouble with your R_LIBS variable?
> 
> Currently I'm doing a
> 
> .First.lib <- function(lib, pkg) library.dynam("tripack", pkg, lib)
> 
> in the tripack package. I think I have to modify it so that it works also
> if called via library(tripack, lib.loc="path/to/somewhere"), any hints?

See below.

> Or is there an error in the library() function not passing its lib.loc
> argument to subsequent calls?

It's your error. You have (version 1.0-3)

.First.lib <- function(lib, pkg) library.dynam("tripack", pkg, lib)

if(version$minor < "62") library.dynam("tripack")

You fail to test for version$major!

That the error message you got is not mentioning the other two arguments
was a useful hint.


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



More information about the R-help mailing list