Re: [Rd] dyn.load (PR#9364)

From: stefano iacus <>
Date: Wed 15 Nov 2006 - 14:08:48 GMT

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


On 15/nov/06, at 15:27, wrote:

> Full_Name: Jonathan Tuke
> Version: 2.4.0
> OS: Mac OS X 10.4.8
> Submission from: (NULL) (
> I am writing C code to implement in R. I am using R CMD SHLIB and then
> dyn.load(""). 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(""), 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
> ______________________________________________
> mailing list
> mailing list Received on Thu Nov 16 05:25:15 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 16 Nov 2006 - 06:30:44 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.