search for: barfun

Displaying 1 result from an estimated 1 matches for "barfun".

Did you mean: carfun
2014 Jul 21
1
create R package include Fortran source code.
...e Fortran code is a subroutine. I can use "R CMD SHLIB bar.f -o bar.o" to create the shared library. For the R package, I put the fortran file in the src/ and I use R code as follows: ".First.lib"<-function(libname,pkgname){library.dynam("barpkg",pkgname,libname)} barfun<-function(n,x){ .Fortran("bar",as.integer(n),as.double(x)) } package.skeleton(name="barpkg",list=c("barfun")) -------------------------------------------------------------------------- I can build with "R CMD build barpkg", when I check the package with...