Skip to content

Loading Fortran code with NAG subroutines: Solution

1 message · Claudio Verzilli

#
Create a Makevars file in the compiling directory and set PKG_LIBS=-L/path/to/naglib.so -lnag
therein. Then use dyn.load with now=F.
Thanks to Prof Ripley for his suggestion.

Regards

Claudio
On Wed, 20 Jun 2001, Claudio Verzilli wrote:

            
Well, R CMD SHLIB uses R_HOME/etc/Makeconf....

Look in `Writing R Extensions' for how to do this properly, using PKG_LIBS