Displaying 1 result from an estimated 1 matches for "drnnor".
2010 Feb 12
1
R - Compiling and calling Fortran code that uses IMSL libraries - Help!
...instructions both John and I were able to successfully:
1. run R CMD SHLIB bar.f
2. start R and run dyn.load(bar.so)
3. call function - .Fortran("bar", n=as.integer(5), x=as.double(rnorm(5)))
However the problem comes in when the following line is added to the bar.f
program file:
call drnnor(1, x) (This requires the Fortran IMSL Libraries)
Although the program compiles with no problem (R CMD SHLIB bar.f), we get
the following error when running dyn.load(bar.so):.
> dyn.load("bar3.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shar...