[R] how to statically load a lib *.a
thomas at biostat.washington.edu
Mon Jan 10 17:54:22 CET 2000
On Mon, 10 Jan 2000, Tony Q. Zhang wrote:
> I built a PORT library (libport.a) from NetLib, which contains lots of
> Fortran subroutins. How can I statically load it into R? Or should I
> recompile R with this library?
You don't statically load things into R, you dynamically load them. This
should be possible using R SHLIB to compile and link the code.
If your library needs to link system libraries that are not linked by R
you may need to write a Makefile as well. This is tricky if you want it to
> btw, all I'm trying to do is to port _constrained_ optimization routine
> 'nlregb' into R. It is based on the public routines from netlib. I don't
> know exactly how difficult (or easy) it is.
As of a few days ago we have constrained optimisation in the development
version of R, which is a much easier solution.
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