make_dotcall_to_fortran: Generate C stub and R stub for making a .Call to a Fortran...

View source: R/registration.R

make_dotcall_to_fortranR Documentation

Generate C stub and R stub for making a .Call to a Fortran function

Description

Parse a fortran subroutine/entry definition and return a C routine that can be used with .Call and R call snippet

Usage

make_dotcall_to_fortran(fun_strs)

Arguments

fun_str

a vector of subroutine definition strings with args

Value

a named list of C code and R code for each function

Examples

make_dotcall_to_fortran(c("subroutine foo(no,ni,x,y,w,theta)", "entry foobar(ix, y)", "subroutine bar(x,n,p,m)"))


bnaras/SUtools documentation built on Nov. 26, 2022, 6:07 p.m.