A new version of the nloptr package has been released!
This release fixes a breaking bug which affects nloptr and its reverse dependencies and brings some minor tweaks and corrections along the way:
- Minimal patch for build against nlopt
2.9.x(#176, @jaganmn): specifically, the issues were that (i) nlopt versions2.9.xhad one less algorithm in theenumlist, namelyNLOPT_LD_LBFGS_NOCEDALwas removed in these versions and put back in2.10and (ii) we were usinginst/includein which we copied nlopt headers conditionally to build the package (e.g. listing it inPKG_CPPFLAGS) resulting in possible version conflicts. - Fix the 2 failed tests by adding one more termination criterion.
- Update GHA workflows to latest versions.
- Fix reverse
LinkingTodependencies by (i) unconditionally copying headers toinst/includeand (ii) fixingcmakepath search (#179, @astamm). - Fix for newly broken kergp package due to wrong usage of
ifstatement insidepaste()which works differently than when used insidec()(#180, @astamm). - Update artifact action to
v4(#174, @eddelbuettel). - Correcting some of the unit tests in
test-banana(#167, @aadler). - Correcting some of the unit tests in
test-global-wrapper(#166, @aadler). - Update the code in
nloptr.cfor compatibility with theRAPI, efficiency, and formatting (#169, @aadler). - Bugfix:
ranseedexpects an unsigned long but was passed as an integer, thus reducing the range of random seeds. It is now passed as a double and converted to a long (#169, @aadler). - Since
v2.1.1: Fix the issue One of the unit tests for theisres()algorithm was failing on some CRAN builds because convergence is stochastic with slightly different results even with the same fixed seed prior to calling the function.