From lxh37 at psu.edu  Thu Aug 30 17:59:29 2012
From: lxh37 at psu.edu (LIYING HUANG)
Date: Thu, 30 Aug 2012 11:59:29 -0400 (EDT)
Subject: [Rd] include dll in R-package
In-Reply-To: <DDCB3450-4867-4E68-8CEA-DDCAC1D311D4@xs4all.nl>
Message-ID: <682746281.6021774.1346342369345.JavaMail.root@psu.edu>



One very simple question, probably not appropriate to post this to rdevel list,
I put all Fortran files in src, when I do R CMD check, it tries to compile
the files by alphabetical order. I tried to modify Makevar, but no luck 
after staring at the manual for hours. It seems that I could use R CMD SHLIB 
as following to compile the codes first to get around this problem before 
doing "R CMD check", but I am curious how to specify the file compilation order 
in Makevar? Thanks!

R CMD SHLIB -o lcca.dll error_handler.f90 constants.f90

Liy

----- Original Message -----
From: "Berend Hasselman" <bhh at xs4all.nl>
To: "LIYING HUANG" <lxh37 at psu.edu>
Cc: "Kasper Daniel Hansen" <kasperdanielhansen at gmail.com>, r-devel at r-project.org
Sent: Tuesday, August 28, 2012 7:02:02 AM
Subject: Re: [Rd] include dll in R-package


On 28-08-2012, at 01:29, LIYING HUANG wrote:

> 
> I am quite new in R, I looked at R manual- how to build R Package, 
> still not very clear. Yes, it would be very helpful if I could 
> download a package having Fortran source codes to look at, Do 
> you know any package built with Fortran source code? Thanks!
> 

To mention a few:

deSolve
minpack.lm
nleqslv
rootSolve
xts

and probably many more.

Berend



[Rd] include dll in R-package
LIYING HUANG