Skip to content

Commit

Permalink
(math/R-nloptr) 2.0.3 to 2.1.1
Browse files Browse the repository at this point in the history
# nloptr 2.1.1

This is a patch release to work around a bug in the CRAN checks. Specifically,
one of the unit tests for the `isres()` 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.

# nloptr 2.1.0
This release deprecates the default behavior of the inequality equations in any
wrapper function which uses them. Currently, they are calibrated to be >= 0.
This version allows for the equations to be consistent with the main `nloptr`
function, which requires <= 0. In a future release, the default behavior will
switch to assuming the calibration is <= 0, and eventually, the >= 0 behavior
will be removed. It also includes a large number of safety and efficiency
changes, and an expansion of the unit tests to 100% coverage for all files but
one. The major changes include:

* Reversed the direction of the inequality equations `hin` and `hinjac` in the
wrapper functions which use them, bringing them into compliance with the main
`nloptr` call. This addresses
[Issue #148](astamm/nloptr#148);
* Cleaned the Hock-Schittkowski problem no. 100, Hartmann 6-dimensional, and
Powell exponential examples. This addresses
[Issue #152](astamm/nloptr#152) and
[Issue #156](astamm/nloptr#156);
* Updated roxygen version;
* Updated maintainer email;
* Deal with NA returns from `parallel::detectCores()` (contributed by @jeroen in
PR #150);
* Setup rhub v2 checks;
* Update cmake installation instructions on Mac with brew (#146);
* Allow use of equality constraints with COBYLA (#135);
* Replaced the unit testing framework of `testthat` with `tinytest` (See
[Issue #136](astamm/nloptr#136));
* Brought coverage of `is.nloptr` to 100%. The only file not completely covered
by unit tests is `nloptr.c`. The uncovered calls are error messages which get
trapped by tests in R before the call gets to C;
* Linted package for code correctness and consistency;
* Updated vignette, DESCRIPTION, and NEWS;
* Updated package website to use bootstrap 5;
* Expanded unit tests: coverage now over 97% with no file below 90%;
* Removed forcing `C++11`;
* Added safety checks to C code;
* Added many safety and efficiency enhancements to R code;
* Most R code style made self-consistent;
* Updated documentation and messages for accuracy and mathematical formatting
* Updated Github actions;
* Some bugfixes (e.g. in `isres` or the warning in `nl.grad`).
  • Loading branch information
mef committed Nov 6, 2024
1 parent fdcf0c3 commit 075eff9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 12 additions & 2 deletions math/R-nloptr/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
# $NetBSD: Makefile,v 1.9 2023/08/11 08:41:09 mef Exp $
# $NetBSD: Makefile,v 1.10 2024/11/06 14:06:25 mef Exp $

R_PKGNAME= nloptr
R_PKGVER= 2.0.3
R_PKGVER= 2.1.1

MAINTAINER= [email protected]
COMMENT= R interface to NLopt
LICENSE= gnu-lgpl-v3

TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr
TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
TEST_DEPENDS+= R-inline-[0-9]*:../../devel/R-inline
TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr
#EST_DEPENDS+= R-testthat-[0-9]*:../../devel/R-testthat
TEST_DEPENDS+= R-tinytest-[0-9]*:../../devel/R-tinytest

# !pdfTeX error: pdflatex (file tctt1000): Font tctt1000 at 600 not found
TEST_DEPENDS+= tex-ec-[0-9]*:../../fonts/tex-ec
TEST_DEPENDS+= tex-inconsolata-[0-9]*:../../fonts/tex-inconsolata
TEST_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
TEST_DEPENDS+= tex-url-[0-9]*:../../print/tex-url
TEST_DEPENDS+= tex-xkeyval-[0-9]*:../../print/tex-xkeyval

USE_LANGUAGES= c c++ fortran77
USE_TOOLS+= pkg-config
Expand Down
9 changes: 4 additions & 5 deletions math/R-nloptr/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$NetBSD: distinfo,v 1.8 2024/06/24 14:53:16 jperkin Exp $
$NetBSD: distinfo,v 1.9 2024/11/06 14:06:25 mef Exp $

BLAKE2s (R/nloptr_2.0.3.tar.gz) = fe92ef7297289695918b121ae1cd1b916c68119516c4ecde393038a8bc58d579
SHA512 (R/nloptr_2.0.3.tar.gz) = 08f8a6b7ddc20f7b75c567ee7e55abd47228c4fc8db254080dc7f4010311a92ad4c75ca9b593adbb4183308e4142fdc9ab80aed1b7fe5da3b7450a19624b98e6
Size (R/nloptr_2.0.3.tar.gz) = 2219877 bytes
BLAKE2s (R/nloptr_2.1.1.tar.gz) = 47ffc8e7a474308c9049dd592f7d36a7a304e00967353bfdc3cf9bbd3e9ac2c2
SHA512 (R/nloptr_2.1.1.tar.gz) = 65f521b5c57e8b71dfaea81f8b75ddbcf9455cbbe31045b4602dfc2287133a23b740eaf5d6ebd30e4f511f4815fc972f5f38be5b69e266f28153e6f62256a23b
Size (R/nloptr_2.1.1.tar.gz) = 2236635 bytes
SHA1 (patch-configure) = 4cae010fd9245d667bf8c4be45f9dd65303ac9c9
SHA1 (patch-src_test-C-API.cpp) = c103296303bea8810d7d5f81cf09d91b14841776

0 comments on commit 075eff9

Please sign in to comment.