[R] Calling C function from Fortran

2005-06-15 Thread Gilles GUILLOT
The example in the R doc and the hints from Shusong Jin , Ingmar Visser and Reid Huntsinger (thanks all three) refer to the case where the function does not have arguments. I'm still looking for a proper sequence of commands to call C functions with arguemnts from R. Imagine I want to evalua

[R] Calling C from Fortran

2005-06-14 Thread Gilles GUILLOT
I would like to call C routines from Fortran as suggested in section 5.6 of the "Writing R extensions" documentation. I'm familiar with Fortran but not with C. I understand the example provided in Fortran: subroutine testit() double precision normrnd, x call rndstart() x = normrnd() call dblepr(

Re: [R] building a package under windows

2004-10-26 Thread Gilles GUILLOT
After checking paths, it works better. But I still have trouble, see line -5 below : C:\Documents and Settings\guillot\Mes documents\package>R CMD build geneland * checking for file 'geneland/DESCRIPTION' ... OK * preparing 'geneland': * cleaning src * removing junk files * building 'geneland_1

[R] building a package under windows

2004-10-25 Thread Gilles GUILLOT
2 make: *** [pkg-geneland] Error 2 *** Installation of geneland failed *** Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland' ERROR Installation failed. What is wrong here ? Gilles -- __________

[R] building an R package : where and how should my fortran library be loaded ?

2004-10-22 Thread Gilles GUILLOT
thinking that my Geneland.so was loaded automatically by the command library("Geneland") Obviously, it's not. Where and how should the library loaded ? Gilles _ Gilles GUILLOT INRA -Département Mathématiques e

Re: [R] I/O fortran instructions and dyn.load

2004-05-26 Thread Gilles GUILLOT
It works with R CMD SHLIB test.f Thanks. Gilles > Try > > R CMD SHLIB test.f > > If SHLIB know it has to deal with Fortran code, it adds the appropriate > libraries. > > On Wed, 26 May 2004, Gilles GUILLOT wrote: > > I have the following Fortran code > > &g

[R] I/O fortran instructions and dyn.load

2004-05-26 Thread Gilles GUILLOT
sed to use such programs on my computer under mandrake linux 10. The problem reported occurs on a new server operating under another linux distrib (debian). Thanks in advance for any help, Gilles -- _________ Gilles GUILLOT INRA -Département