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)
}
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