It is straight forward to call a Fortran subroutine from R using .Fortran and there are examples available online. However, I haven't found any direct way to call a Fortran function from R.
Currently, I use an interface for that, which gets the Fortran function and uses it in a subroutine, but it is very time consuming to do so for all external functions.
Is there an elegant way to call Fortran functions directly from R?