astamm / nloptr

nloptr provides an R interface to NLopt, a free/open-source library for nonlinear optimization providing a common interface to a number of different optimization routines which can handle nonlinear constraints and lower and upper bounds for the controls.
https://astamm.github.io/nloptr/
Other
106 stars 34 forks source link

Ensure seven digits are printed when comparing to seven (closes #140) #141

Closed eddelbuettel closed 1 year ago

eddelbuettel commented 1 year ago

Adding options(digits=7) to three test files that rely on it ensure the test passses when it would otherwise fail under a different setting.

eddelbuettel commented 1 year ago

I agree that is somewhere between a corner case ("who on earth changes that?" -- "well I do") and clearly unstated but important assumption. I'd add it, but @astamm is maintainer and gets to decide :)

astamm commented 1 year ago

Good for me, thanks @eddelbuettel.