[Rcpp-devel] Prior art on R packages using Rcpp/C++ to call a Fortran(90->2008) library, using iso_c_binding

Jean-Michel.Perraud at csiro.au Jean-Michel.Perraud at csiro.au
Sun Aug 18 08:44:36 CEST 2013


Hi,

I am seeking existing code/documentation for such a situation. General advice very welcome.

Technically a few precisions:
- the Fortran library is(will be) substantial in size, and compiled with gfortran or Intel fortran (i.e. not when building the R package)
- I intend to write an interop layer in C/C++ calling a Fortran API using the Fortran iso_c_binding module for interop. this C/C++ layer would be the entry point for things like R or Python
- I'd like to use Rcpp to access from R, in preference C code to do the data marshalling. I intend to pass more than numeric/character vector hence wanting to use Rcpp instead of .C, .Fortran and .Call.

I picked up one previous thread on this mailing list (http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2013-January/005147.html), but the package pointed to in a reply ('rexpokit' at http://r-forge.r-project.org/scm/?group_id=1427), but do not see a practical use of Rcpp in the code.
 


More information about the Rcpp-devel mailing list