[R] a question about sgeostat

Albrecht Gebhardt albrecht.gebhardt at uni-klu.ac.at
Tue May 30 00:49:49 CEST 2000


On Mon, 29 May 2000, Prof Brian D Ripley wrote:

> On Mon, 29 May 2000, Matthew Norton wrote:
> 
> > I know hese sorts of questions should be addressed directly to the author of
> > the extensions, but since I'm in a bit of a rush, I thought I'd fire this
> > out to the group at large.  Furthermore, one of the problems I'm having
> > seems to be indenpendent of the packages themselves (I think, but I'm not
> > sure).
>
> .......
>
> No, but it is specific to your system.  Did you compile the package
> yourself?  If so, were there any compile warnings?  The first thing to
> check is if the tripack/libs/tripack.so is actually there. If not,
> go back to installing tripack.  I strongly suspect that you are being
> misled, as loading a package a second time in circumstances like this
> often appears to succeed, and in fact does nothing.
>

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?

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

Albrecht


PS: it was not exactly the same version of tripack, I will release a new
one soon, but I think this doesn't matter here.
 
> > The second little problem I've been running across is the following.  The
> 
> ....
>

......................................................................
| Albrecht Gebhardt          Tel.: (++43 463) 2700/832               |
| Institut fuer Mathematik   Fax : (++43 463) 2700/834               |
| Universitaet Klagenfurt    mailto:albrecht.gebhardt at uni-klu.ac.at  |
| Villacher Str. 161         http://www-stat.uni-klu.ac.at/~agebhard |
| A-9020 Klagenfurt, Austria                                         |
`--------------------------------------------------------------------'

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