search for: calculatormodule

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

2009 May 22
2
Step by step: Making an R package with Fortran 95
...ubroutine with .Fortran("MySubroutine", var1=as.double(x), var2=as.double(y), etc.) I understand this part. src directory: I put my *.f95 files here. Also, I put a Makevars file here. Suppose that I have two *.f95 files, named CalculatorModule.f95 and ANiceSubroutine.f95. CalculatorModule.f95 contains a Fortran 95 module. ANiceSubroutine.f95 uses the functions in Calculator.Module.f95 with the "USE" command. To be consistent with my R file (above), ANiceSubroutine.f95 contains the subroutine: &q...