Closed GabrielHoffman closed 2 hours ago
This can happen (theoretically and practically) with dynamic linking but it is rare in practice as library interfaces and behavior tend to be stable. nloptr
tries to straddle a balance of making installing easier and faster (by relying on a system library), other packages vendor. (And on other OSs you get static linking only....)
If you can distill out a minimally veriable reproducible example (ideally not involving lme4
) we could augment the unit tests.
On macOS Sonoma 14.7.1 with R 4.4.1, I started off with a normal working install of
nloptr
andlme4
. I updated some system packages withbrew
, not expecting any effect on R packages. After updating,brew
had installednlopt
2.9.0. (The version number is confusing, but that is whatbrew
says: https://formulae.brew.sh/formula/nlopt).Then I noticed that
lme4
was failing for simple examples. See bug report. After a lot of digging, re-installingnloptr
resolved the issue.My issue is resolved, but I want to post here since I was surprised that updating a system version of
nlopt
would break an R version ofnloptr
Best, Gabriel