Re: [Rd] calling fortran from C

2005-10-20 Thread Charles C. Berry
Lapack.c is loaded with examples. Try $ cd $ grep "F77_CALL" ./src/modules/lapack/Lapack.c Did you see 5.6 Calling C from FORTRAN and vice versa in 'Writing R Extensions' ?? On Thu, 20 Oct 2005, James Bullard wrote: > > Hello, I had a question about calling some of R's fortran r

Re: [Rd] calling fortran from C

2005-10-20 Thread Peter Dalgaard
"James Bullard" <[EMAIL PROTECTED]> writes: > Hello, I had a question about calling some of R's fortran routines from C. > Specifically, I would like to call: dqrfit from some C code which will be > bundled as an R package. I was hoping someone knew of an example in some > of R's code which

Re: [Rd] calling fortran from C

2005-10-20 Thread Liaw, Andy
This is in R-exts. If the Fortran subroutine is called `dqrfit', you would use something like: F77_CALL(dqrfit)(...); All arguments need to be pointers, as Fortran passes by reference. Andy > From: James Bullard > > Hello, I had a question about calling some of R's fortran > routines from C.

Re: [Rd] calling fortran from C

2005-10-20 Thread Prof Brian Ripley
On Thu, 20 Oct 2005, James Bullard wrote: > > Hello, I had a question about calling some of R's fortran routines from C. > Specifically, I would like to call: dqrfit from some C code which will be > bundled as an R package. I was hoping someone knew of an example in some > of R's code which does s

[Rd] calling fortran from C

2005-10-20 Thread James Bullard
Hello, I had a question about calling some of R's fortran routines from C. Specifically, I would like to call: dqrfit from some C code which will be bundled as an R package. I was hoping someone knew of an example in some of R's code which does something like this (any fortran call from R's