From stefano.iacus at unimi.it  Wed Nov 15 15:08:48 2006
From: stefano.iacus at unimi.it (stefano iacus)
Date: Wed, 15 Nov 2006 23:08:48 +0900
Subject: [Rd] dyn.load (PR#9364)
In-Reply-To: <20061115062705.EC32656226@slim.kubism.ku.dk>
References: <20061115062705.EC32656226@slim.kubism.ku.dk>
Message-ID: <7344E92E-1E73-4980-AE01-49E084211020@unimi.it>

In OS X you cannot "unload" dynamically linked code. This is a known  
"feature" of OS X :(
This is not an R bug.

stefano

On 15/nov/06, at 15:27, tuke at senet.com.au wrote:

> Full_Name: Jonathan Tuke
> Version: 2.4.0
> OS: Mac OS X 10.4.8
> Submission from: (NULL) (203.173.46.189)
>
>
> I am writing C code to implement in R. I am using R CMD SHLIB and then
> dyn.load("file.so"). The function I then call with .C("function").  
> Since I
> installed the latest R version, I have found that if I alter my C  
> code and
> recompile, then use dyn.load("file.so"), the function in R is not  
> updated but
> remains as the previous code. I have tried dyn.unload, but when I  
> use dyn.load()
> the initially loaded code is used. The only way to load the updated  
> c code is to
> quit R and then reopen.
>
> Thanks,
> Jono
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] dyn.load (PR#9364)
stefano iacus