[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

[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(X

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\packageR CMD build geneland * checking for file 'geneland/DESCRIPTION' ... OK * preparing 'geneland': * cleaning src * removing junk files * building

[R] building a package under windows

2004-10-25 Thread Gilles GUILLOT
] 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 -- _ Gilles GUILLOT INRA -Département Mathématiques

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

2004-10-22 Thread Gilles GUILLOT
? Gilles _ Gilles GUILLOT INRA -Département Mathématiques et Informatique Appliquées Unité de Mixte de Recherche INRA - INAPG - ENGREF Institut National Agronomique de Paris-Grignon 16 rue Claude Bernard 75231 Paris cedex 5 Aile

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

2004-05-26 Thread Gilles GUILLOT
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 Mathématiques et Informatique

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 subroutine sub(path) character*100 path open