An example package which shows use of 'NLopt' functionality from C++ via 'Rcpp' without requiring linking, and relying just on 'nloptr' thanks to the exporting API added there by Jelmer Ypma. This package is a fully functioning, updated, and expanded version of the initial example by Julien Chiquet at < https://github.com/jchiquet/RcppArmadilloNLoptExample> also containing a large earlier pull request of mine.
Simple NLopt Usage Example for Rcpp
Starting with its 1.2.0 release, the nloptr package by Jelmer Ypma now exports its C symbols in a way that makes it accessible to other R packages without linking easing the installation across operating systems.
This package illustrates this with an example drawn from the NLopt tutorial.
This repo builds on, extends, and simplifies an earlier repo by Julien Chiquet to which I contributed a core part of this setup.
GPL (>= 2)