Gabor, what OS X version are you using? More recent OS X versions have slightly different C++ ABI so you can't really mix C++ code compiled on SL and let's say Mavericks - hence the two different sets of binaries. That would be my guess here since igraph uses C++ and it involves destructor code on unloading...
Cheers, Simon On Sep 25, 2014, at 11:27 AM, Gábor Csárdi <[email protected]> wrote: > Hi all, > > I have a little mystery here, and ideas would be welcome. > > I would like to unload the package igraph. The following works fine > with the package downloaded from CRAN (Snow Leopard package): > > install.packages("igraph") > library(igraph) > library(devtools) > unload(inst("igraph")) > > However, if I build the package myself on my machine, then it does not > work any more and unloading hangs. I can press CTRL+C to get the R > prompt back, but every command hangs again. This is my machine: > > ~$ xcodebuild -version > Xcode 5.1.1 > Build version 5B1008 > > ~$ Rscript -e 'sessionInfo()' > R version 3.1.1 (2014-07-10) > Platform: x86_64-apple-darwin10.8.0 (64-bit) > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets base > > It also hangs if I call dyn.unload() directly, instead of calling > devtools; if I remove > the igraph.so file from the package, then it works again, so it is > definitely something with the .so file. > > I know this is not much work with, but if you have any guesses, please > let me know. Thanks, > Gabor > > _______________________________________________ > R-SIG-Mac mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
