Re: [Rd] [R] Use of .Fortran

2010-06-20 Thread Göran Broström
On 06/20/2010 04:02 AM, David Scott wrote: Thanks very much to all who replied. I went with Brian's approach, and eventually, despite all my attempts to foul it up, I did get it to work successfully. For the record here are the details. The subroutine is: subroutine

Re: [Rd] [R] Use of .Fortran

2010-06-19 Thread Sharpie
Prof Brian Ripley wrote: Well, it is not Fortran 77 but Fortran 95, and so needs to be given a .f95 extension to be sure to work. I think most compilers only distinguish two fortran file extensions: .f or .f90. .f denotes fixed-form source code while .f90 denotes free-form. Some

Re: [Rd] [R] Use of .Fortran

2010-06-19 Thread David Scott
Thanks very much to all who replied. I went with Brian's approach, and eventually, despite all my attempts to foul it up, I did get it to work successfully. For the record here are the details. The subroutine is: subroutine SSFcoef(nmax,nu,A) implicit double precision(a-h,o-z)

Re: [Rd] [R] Use of .Fortran

2010-06-18 Thread Prof Brian Ripley
On Sat, 19 Jun 2010, David Scott wrote: I have no experience with incorporating Fortran code and am probably doing something pretty stupid. Surely you saw in the posting guide that R-help is not the place for questions about C, C++, Fortran code? Diverting to R-devel. I want to use the