[Rd] Should R Packages Unload Dynamic Libraries When They Unload?

2014-11-11 Thread brodie gaslam
From Hadley's C best practices (http://r-pkgs.had.co.nz/src.html#c-best-practices): Like with C++, whenever you use C code in your package, you should unload the DLL when the package is unloaded: .onUnload - function (libpath) { library.dynam.unload(mypackage, libpath) }

[Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2014-11-11 Thread Vinh Nguyen
Dear list (re-posting from r-help as r-devel is probably more appropriate), I was able to successfully compile R on our AIX box at work using the GNU compilers following the instructions on the R Administration guide. The output can be seen at here