[R] a question about sgeostat

Martin Maechler maechler at stat.math.ethz.ch
Tue May 30 10:28:20 CEST 2000


>>>>> "Matthew" == Matthew Norton <nortonm at magellan.umontreal.ca> writes:

    Matthew> I know hese sorts of questions should be addressed directly to
    Matthew> the author of the extensions, but since I'm in a bit of a
    Matthew> rush, I thought I'd fire this out to the group at large.
    Matthew> Furthermore, one of the problems I'm having seems to be
    Matthew> indenpendent of the packages themselves (I think, but I'm not
    Matthew> sure).

    Matthew> When I try to load the library sgeostat, it tries to load the
    Matthew> tripack library, but seems to fail.  If I try to load the
    Matthew> tripack library first, it seems to be unhappy as well, but
    Matthew> sgeostat then loads without trouble.  I'll give you examples:


    >> library(sgeostat)
    Matthew> Loading required package: mva Loading required package:
    Matthew> tripack Error in library.dynam("tripack") : dynamic library
    Matthew> `tripack' not found
    >> library(tripack)
    >> 

    Matthew>   ...............  or

    >> library(tripack)
    Matthew> Error in library.dynam("tripack") : dynamic library `tripack'
    Matthew> not found
    >> library(sgeostat)
    Matthew> Loading required package: mva
    >>


    Matthew> Does anyone have any idea as to what the problem may be here?

I think "Yes": you've encountered a long-standing "design bug" here --
 it's good time to be reminded of it !

The first time  tripack  "is tried to be loaded"  it ends, not finding the 
"*.DLL/*.so library" file with the compiled code 
--- but it is still attached to the search() path 
(i.e. ` search()[2] ' will give "package:tripack" )

Hence, the second time it is required, nothing happens since
library() / require() finds that the tripack package is already present
and will not do anything.

--> another problem to be fixed hopefully for R 1.1.0

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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