From p.dalgaard@biostat.ku.dk  Tue Mar 31 23:24:28 1998
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 01 Apr 1998 00:24:28 +0200
Subject: R-beta: Not loading C library
In-Reply-To: Paul Gilbert's message of Tue, 31 Mar 1998 15:46:53 -0500
References: <199803310731.JAA00493@sophie.ethz.ch>
 <98Mar31.155223est.13459@mailgate.bank-banque-canada.ca>
Message-ID: <x2afa6a483.fsf@blueberry.kubism.ku.dk>

Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:

> 
>     PaulG> when you q() (ie. create the .RData file) then when R starts it
>     PaulG> reloads a variable .Dyn.libs which indicates libraries which
>     PaulG> have been loaded (even though they are not yet loaded in the new
>     PaulG> session). I think if you rm(.Dyn.libs) before you do
>     PaulG> library("class") then it may work.
> >However, this bug was fixed ``from 0.61.1 to 0.61.2''.
> >As was said by our release master, Peter Dalgaard,
> >0.61.2 has been a bug fix release where we have been careful not to
> 
> Martin
> I just confirmed that Michael Kiefte seems to be  experiencing this problem in
> 0.61.2 Alpha, so I'm not so sure it has been fixed. But, of course, I'm more
> concerned that it is fixed in 0.62.
> Paul

Argh. Right. The .Dyn.libs problem is still in 0.61.2. Like Martin, I
could have *sworn* that it was fixed...

A workaround is simply to remove .Dyn.libs in the startup code. It
should suffice to change the system Rprofile by having something like
this in it:

.First <- function() {
  .Dyn.libs<<-NULL; rm(.Dyn.libs,pos=1)
  if (interactive() && getenv("DISPLAY") != "") x11()
}

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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R-beta: Not loading C library
Peter Dalgaard BSA