[Rcpp-devel] optionally linking to external libraries
Dirk Eddelbuettel
edd at debian.org
Tue Jun 9 14:22:57 CEST 2015
On 9 June 2015 at 06:24, Dirk Eddelbuettel wrote:
| | I'm trying to find a way to provide the additional functionality without
| | forcing the user to install these dependencies. On Linux/Mac a possible
| | way to do that would be to use autoconf, but from what I read Windows
| | support is going to be headache. Does anyone have advice on
| | alternatives? Much appreciated.
|
| Take this one at a time. On Linux/OS X autoconf is indeed common. Some
| package include their own libraries, external libraries is (IMHO) more
| elegant. Some do hybrids.
|
| Windows is always different.
PS The nloptr package may be an interesting stanza. Jelmer first wrote it
with an included copy of nlopt; I later helped generalize to use libnlopt if
present (which obviously makes the package build a lot lighter).
CRAN is a treasure chest. Keep hunting, I am sure you will find many nuggets.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list