[Rd] dyn.load (PR#9364)

2007-02-22 Thread Christophe . Jean
Hi, I have exactly the same problem with R 2.4.1 on an Intel MacBook with Mac OS X 10.4.8. Please find below the output of the test. Christophe --- > source("/Users/Christophe/Desktop/Rdynunload/run.R") WARNING: ignoring environment value of R_HOME gcc-4.0 -arch i386 -I/Library/Frameworks/R.f

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

2006-11-15 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Great. So now we know that Johnatha is running on a PPC. Unfortunately, this isn't included in the details of the OS in the bug report. [EMAIL PROTECTED] wrote: > here is the output > > > > source("run.R") > gcc-4.0 -arch ppc -I/Library/Framework

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

2006-11-15 Thread stefano iacus
here is the output > source("run.R") gcc-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -I/usr/local/ include-fPIC -g -O2 -std=gnu99 -c code.c -o code.o gcc-4.0 -arch ppc -dynamiclib -Wl,-macosx_version_min -Wl,1

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

2006-11-15 Thread stefano . iacus
I'll test your script. Simon also made the same remark. Maybe in 10.4 this problem is solved. But apparently, if I load a package and then try to detach it, R still keeps open the .so file for that package. Is this expected for a successful unload (given that I never had experience of a succes

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

2006-11-15 Thread stefano iacus
I'll test your script. Simon also made the same remark. Maybe in 10.4 this problem is solved. But apparently, if I load a package and then try to detach it, R still keeps open the .so file for that package. Is this expected for a successful unload (given that I never had experience of a succes

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

2006-11-15 Thread stefano . iacus
here is the output > source("run.R") gcc-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -I/usr/local/ include-fPIC -g -O2 -std=gnu99 -c code.c -o code.o gcc-4.0 -arch ppc -dynamiclib -Wl,-macosx_version_min -Wl,1

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

2006-11-15 Thread duncan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was just testing this myself on various machines. And it behaves on Linux, Windows and also on my Intel Mac (OS X 10.4.8). Stefano, is this restriction on OS X still in effect? (Unfortunately I can't test this on any of my Power PC macs just at the

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

2006-11-15 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was just testing this myself on various machines. And it behaves on Linux, Windows and also on my Intel Mac (OS X 10.4.8). Stefano, is this restriction on OS X still in effect? (Unfortunately I can't test this on any of my Power PC macs just at the

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

2006-11-15 Thread stefano iacus
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, [EMAIL PROTECTED] 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 writi

[Rd] dyn.load (PR#9364)

2006-11-14 Thread tuke
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