R optim(method="L-BFGS-B"): unexpected behavior when working with parent environments
On 06/05/2019 18:21, Thomas Petzoldt wrote:
It seems that it's an old bug that was found in some other packages, but at that time not optim: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15958
I think that the bug description is a little bit misleading. The bug is not in fact that "<<-" produce a reference instead of a copy (that's normal) but in fact that some C or Fortran code modifies a variable "in place" without taking care if there are some references on it or not. Serguei (just splitting hairs)