[Rcpp-devel] Integration between Rcpp and Fortran

Dirk Eddelbuettel edd at debian.org
Fri Nov 29 22:04:43 CET 2013

On 28 November 2013 at 10:10, Fábio Corrêa wrote:
| I`m use Fortran code for MCMC process. What I would like is to use the
| Rcpp code within the subroutines in Fortran.
| For example?
| subroutine TEST (x, y, z)
| ! Call function in Rcpp within Fortran
| CALL function.Rcpp (a,b,c,)
| end subroutine TEST
| Is this possible?

In as much as Fortran is capable of calling C, you could use Rcpp with C++
and hide it behind a C interface.  "Probably" doable, but klunky.

| Is there any manual setting an example?

Not that I know of.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the Rcpp-devel mailing list