[Rd] Setting Gnu++11 when compiling R-devel on Windows

2016-08-08 Thread Avraham Adler
Recently, there have been changes to R-devel to make it more compatible with GCC 6.x, which is great. Unfortunately, Windows still uses a toolset based on GCC 4.9.3. When compiling R release or R-patched, one can have GCC called with -std=gnu++11 by having it in the CXXFLAGS in one's HOME/.R/Makev

[Rd] Is it intentional that the Fortran optimization flags changefrom O3 to O2 on Windows?

2016-08-08 Thread Avraham Adler
When compiling R-devel (2016-08-07) on Windows (64bit) using Rtools (3.4.0), the C++ optimization flags are manually changed to -O2 from -O3. This has been the situation for years, and I believe this is to prevent certain optimizations which may cause downstream problems. In R_HOME/src/gnuwin32/fix

Re: [Rd] ifelse() woes ... can we agree on a ifelse2() ?

2016-08-08 Thread Martin Maechler
> Uwe Ligges > on Sun, 7 Aug 2016 09:51:58 +0200 writes: > On 06.08.2016 17:30, Duncan Murdoch wrote: >> On 06/08/2016 10:18 AM, Martin Maechler wrote: [.] >>> Of course, an ifelse2() should also be more efficient than >>> ifelse() in typical "ato