[Rcpp-devel] g++ flags

Dirk Eddelbuettel edd at debian.org
Wed May 7 13:20:54 CEST 2014

On 7 May 2014 at 10:08, Martyn Plummer wrote:
| On Tue, 2014-05-06 at 22:50 -0700, Kevin Ushey wrote:
| > Looks like it was a bug on our end -- R-exts specifies that USE_CXX1X
| > should be set to any value; we try to set it to nothing (ie, define it
| > but leave it empty) but apparently that is not accepted.
| Yes it is. We use Sys.getenv("USE_CXX1X", NA) to distinguish the case
| where USE_CXX1X is set to an empty string (as you did) from the case
| where it is unset. So I don't know why this isn't working for you.
| The relevant code is src/library/tools/R/install.R.


I figured this out tpp after after JJ's better patch replaced my first patch
which also set a value. The construct used here is elegant (but I still find
the entire issue bizarre as one could as easily have required that USE_CXX1X
be set to yes, or 1, or ...   This paragraph is still hard to parse IMHO.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the Rcpp-devel mailing list