Save the function f for calling from fortran

save_rfunc(f)

Arguments

f

the R function to be called using .Fortran