[R] loading shared libraries at startup
Faheem Mitha
faheem at email.unc.edu
Tue Mar 13 00:46:18 CET 2001
Dear people,
I compiled a bit of C code into a shared library cftpR.so, and load it
into R at runtime using
> dyn.load("cftpR.so")
This works fine, however when I put
.First <- function()
{
dyn.load("/home/faheem/research/cftp/cftpR.so")
}
(using absolute path names; also tried with just dyn.load("cftpR.so")),
into my .Rprofile to load the library at startup, the library doesn't get
loaded. I am sure I am missing something obvious, but I spent a while
trying different things and reading documentation, but no dice. So, I
crave your indulgence.
Sincerely, Faheem Mitha.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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