[R] loading shared libraries at startup

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Mar 13 09:51:20 CET 2001


Faheem Mitha <faheem at email.unc.edu> writes:

> faheem ~>cat .Rprofile
> 
> print("reading .Rprofile")
> .First <- function()
> { 
> print(".First is being run")
> dyn.load("/home/faheem/research/cftp/cftpR.so")
> print(is.loaded(symbol.C("onestepupdateR")))
> }
> 
> but when I run R I just get
> 
> [1] "reading .Rprofile"
> [Previously saved workspace restored]
> 
> > 
> 
> Seems to be ignoring .First completely. It worked fine with previous
> versions of R (I used to use it to load libs). Can you suggest some
> debugging diagnostics? Is this perhaps due to some old .Rdata files
> floating around or something like that?

If there's *another* .First in your workspace, it would seem to
explain the behaviour. What is in .First after loading?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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