added calling R from Fortran

Really from C but then the Fortran calls the C which calls R