Inline C, C++, Fortran function calls from R