[Rd] RTools 4.2 - possible conflict with git bash

2022-12-23 Thread sergio.vignali
Hi all, It seems that RTools 4.2 conflicts with git bash on Windows 10. When I use the git bash terminal in RStudio and I run `make --version`, I get the following error: $ C:/rtools42/usr/bin/make.exe --version 1 [main] make (5948) C:\rtools42\usr\bin\make.exe: *** fatal error - cygheap

Re: [Rd] RTools 4.2 - possible conflict with git bash

2022-12-23 Thread Tomas Kalibera
On 12/23/22 15:45, sergio.vign...@unibe.ch wrote: Hi all, It seems that RTools 4.2 conflicts with git bash on Windows 10. You can't mix tools from two different distributions based on msys2 (or cygwin). You cannot e.g. call "make" of one of them from a shell ran in another one. This is due t

[Rd] Bug in optim for specific orders of magnitude

2022-12-23 Thread Collin Erickson
Hello, I've come across what seems to be a bug in optim that has become a nuisance for me. To recreate the bug, run: optim(c(0,0), function(x) {x[1]*1e-317}, lower=c(-1,-1), upper=c(1,1), method='L-BFGS-B') The error message says: Error in optim(c(0, 0), function(x) { : non-finite value supp

Re: [Rd] Bug in optim for specific orders of magnitude

2022-12-23 Thread Rui Barradas
Às 17:30 de 23/12/2022, Collin Erickson escreveu: Hello, I've come across what seems to be a bug in optim that has become a nuisance for me. To recreate the bug, run: optim(c(0,0), function(x) {x[1]*1e-317}, lower=c(-1,-1), upper=c(1,1), method='L-BFGS-B') The error message says: Error in op

Re: [Rd] Bug in optim for specific orders of magnitude

2022-12-23 Thread Steven Dirkse
Collin, It is interesting that you get such strange results when passing denormal values to optim(). Several possibilities for this spring to mind. A better question though might be, "What kind of results are you expecting when you pass such small values to optim()?" In general, you shouldn't h

Re: [Rd] Bug in optim for specific orders of magnitude

2022-12-23 Thread J C Nash
Extreme scaling quite often ruins optimization calculations. If you think available methods are capable of doing this, there's a bridge I can sell you in NYC. I've been trying for some years to develop a good check on scaling so I can tell users who provide functions like this to send (lots of)

Re: [Rd] Bug in optim for specific orders of magnitude

2022-12-23 Thread Duncan Murdoch
The optim help page mentions scaling in the discussion of the "control" argument. Specifically under the parscale description: "Optimization is performed on par/parscale and these should be comparable in the sense that a unit change in any element produces about a unit change in the scaled va