I installed the acepack package under Linux (gcc 2.7.2, R-0.61.1).
Installation without problem. But
---------------------------------------------------------------------
sirio[~]% R
R : Copyright 1998, Robert Gentleman and Ross Ihaka
Version 0.61.1 Alpha (January 12, 1998)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" for details.
Type "demo()" for some demos, "help()" for on-line help,
or
"help.start()" for a HTML browser interface to help.
> library(acepack)
> x <- runif(100)
> y <- x + rnorm(100)
> m <- ace(x,y)
Error in .Fortran("mace", p = ncol(x), n = nrow(x), x = t(x), y = y, w
= wt,
: C/Fortran function not in load table> library.dynam("acepack.so")
> m <- ace(x,y)
Segmentation fault
sirio[~]%
-------------------------------------------------------------
The first problem (not magically loading of the shared
library) is easy to fix. The zzz.R file in acepack/R is
----------------------------------------------------------
.First.lib <- function(lib, pkg) {
library.dynam("acepack", pkg, lib)
}
if (version$minor < "0.62")
library.dynam("acepack")
----------------------------------------------------------
but the correct test, at least the one which works on my machine,
should be
---------------------------------------------------------
if (version$minor < "62.0")
library.dynam("acepack")
----------------------------------------------------------
Does someone here has some hints for the second (the segmentation
fault) ?
Thanks in advance.
guido masarotto
ps1. I also tried to link the shared library with libf2c as
suggested in the makefile but nothing changed.
BTW, which version of libf2c?
ps2. The avas function works without any problems.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._