[R] building an exectuable as part of a package.
ripley at stats.ox.ac.uk
Tue Jun 25 17:41:59 CEST 2002
On Tue, 25 Jun 2002, Doug Nychka wrote:
> I need some help figuring out how to compile and include a
> straightforward FORTRAN program as part an R package.
> This may sound strange but it will allow us access to some well tested
> code from within R.
> I think the executable should go into the exec subdirectory but need some
> help on how to signal the R build utility that some particular source
> should be compiled and linked as a standalone program.
R INSTALL (not R CMD build)?
I think you need to supply a Makefile in pkg/src, and I would probably put
the Fortran source in a subdirectory of pkg/src. My guess is that a
configure script will probably be needed if the package is to be portable
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help