RcppNLoptExample v0.0.1


Monthly downloads



'Rcpp' Package Illustrating Header-Only Access to 'NLopt'

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.


RcppNLoptExample Build Status License Downloads

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.

See Also

This repo builds on, extends, and simplifies an earlier repo by Julien Chiquet to which I contributed a core part of this setup.


Dirk Eddelbuettel


GPL (>= 2)

Functions in RcppNLoptExample

Name Description
testConstrainedProblem NLopt Call Example from Rcpp
No Results!

Last month downloads


Type Package
Date 2018-10-01
License GPL (>= 2)
Encoding UTF-8
LinkingTo Rcpp, nloptr (>= 1.2.0)
RoxygenNote 6.0.1
NeedsCompilation yes
Packaged 2018-10-02 02:32:59 UTC; edd
Repository CRAN
Date/Publication 2018-10-12 13:40:02 UTC

Include our badge in your README