From @oko| @end|ng |rom |n@@-tou|ou@e@|r  Mon May  6 18:37:37 2019
From: @oko| @end|ng |rom |n@@-tou|ou@e@|r (Serguei Sokol)
Date: Mon, 6 May 2019 18:37:37 +0200
Subject: [Rd] 
 R optim(method="L-BFGS-B"): unexpected behavior when working
 with parent environments
In-Reply-To: <d6888e9a-b457-a6e0-85fc-3810f8f93d7d@tu-dresden.de>
References: <45fd1e7c-fffa-11b1-3a62-08d086fcbd78@gmail.com>
 <0346dccc-9d93-0d74-9c20-1825c67cd900@insa-toulouse.fr>
 <ddb7d325-67a3-ed65-11cd-014895d1a454@insa-toulouse.fr>
 <e1bcc19f-413f-b518-fb7e-ad7feddb2f88@gmail.com>
 <0574BB69-85B4-42D9-886D-F0219316ABF2@gmail.com>
 <1a275659-4921-c36c-3248-b73f7eb8ab87@gmail.com>
 <58d7911e7e7144139d7bc5b91f5270f5@jhu.edu>
 <88f3b7b4-93c2-6c2b-34e0-770799054e29@gmail.com>
 <d6888e9a-b457-a6e0-85fc-3810f8f93d7d@tu-dresden.de>
Message-ID: <57a4a97c-4a91-9e77-3e70-7b736670f21b@insa-toulouse.fr>

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)



[Rd] R optim(method="L-BFGS-B"): unexpected behavior when working with parent environments
Serguei Sokol