Re: [Rcpp-devel] NLopt linking problem

2016-04-27 Thread Jens Johannsen
Many thanks for your comments. I have now set the value of the system environment variable NLOPT_HOME to the location of the NLopt library (this location is the /src folder of my package directory), and changed the Makevars.win (guess this is the only relevant Makevars file as the package will onl

Re: [Rcpp-devel] NLopt linking problem

2016-04-26 Thread Dirk Eddelbuettel
Hi Jens, On 26 April 2016 at 17:50, Jens Johannsen wrote: | I'm aware of the nloptr CRAN package, but not using that package as the | objective function (and gradient) being optimized as to be in C++. Defining the | function in R and then calling back and forth between R  and C++ using the | nlo

Re: [Rcpp-devel] NLopt linking problem

2016-04-26 Thread Balamuta, James Joseph
rom: rcpp-devel-boun...@lists.r-forge.r-project.org [mailto:rcpp-devel-boun...@lists.r-forge.r-project.org] On Behalf Of Jens Johannsen Sent: Tuesday, April 26, 2016 10:51 AM To: Dirk Eddelbuettel Cc: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] NLopt linking problem Hi D

Re: [Rcpp-devel] NLopt linking problem

2016-04-26 Thread Jens Johannsen
Hi Dirk, Thanks for the quick reply. I'm aware of the nloptr CRAN package, but not using that package as the objective function (and gradient) being optimized as to be in C++. Defining the function in R and then calling back and forth between R and C++ using the nloptr package is too costly time

Re: [Rcpp-devel] NLopt linking problem

2016-04-26 Thread Dirk Eddelbuettel
Jens, On 26 April 2016 at 17:22, Jens Johannsen wrote: | Dear Rcpp-Devels, List, | | I'm struggling with building a Rcpp package linking to the NLopt library (http: | //ab-initio.mit.edu/wiki/index.php/NLopt). Before we get any further, is there a reason you are NOT using the CRAN package doin

[Rcpp-devel] NLopt linking problem

2016-04-26 Thread Jens Johannsen
Dear Rcpp-Devels, List, I'm struggling with building a Rcpp package linking to the NLopt library (*http://ab-initio.mit.edu/wiki/index.php/NLopt *). I'm on Windows and I've the following files in \src: - Makevars.in - Makevars.win - Rcpp_pr