On 5 February 2020 at 11:47, Ralf Stubner wrote:
| On Tue, Feb 4, 2020 at 5:51 PM Guido Kraemer <gkrae...@bgc-jena.mpg.de> wrote:
| > I have also set `~/.R/Makevars.win` as suggested in the manual "Writing
| > R extensions", Section 1.2.5 "Using C++14 code".
| 
| What exactly do you have in src/Makevars.win? Just the simple CXX_STD
| = CXX14 or the more complex set-up from the end of section 1.2.5..
| 
| The rstan package is on CRAN including windows binaries and uses
| C++14. In src/Makevars.win they have
| 
| CXX_STD = CXX14
| CXX14STD = -std=c++1y
| 
| c.f. 
https://github.com/stan-dev/rstan/blob/40e93534e771d8c536ddb60fc62e86a5b55596de/rstan/rstan/src/Makevars.win#L2-L3

Good catch. I think I also noticed at least one other package using C++14
with the current toolchain (xtensor) and it used eg by one other package
(rray) which has an even simpler src/Makevars.win just setting CXX_STD as
advised (plus tweaks to PKG_CXXFLAGS, see 
  https://github.com/r-lib/rray/blob/master/src/Makevars.win

So notwithstanding my earlier message Guido's package should work with the
current Rtools.  

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to