Demo of how to call R from C called from R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
package
.gitignore
LICENSE.md
README.md

README.md

Demo R package. Shows how to call R from C using either

  • .Call to get to C from R and eval to call R from C

  • .C to get to C from R and call_R to call R from C

Note the latter is deprecated since R-2.15.0 but still works (at least for a while).

Also shows how to call R from Fortran (via C function pretending to be Fortran subroutine).