Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was pretty straightforward, except for CentOS 6 (!!). Packages with C++11 code couldn't be installed:
In previous versions of R (3.4, 3.5), this
CXX11
Make variable was set toCXX11 = g++
in the$R_HOME/etc/Makeconf
file. Since R 3.6.0, I think this is no longer set if the C++ compiler used to compile R doesn't support C++11.We could compile R on CentOS 6 with the newer C++ compiler instead, but I think it'd be better to just add the proper configuration variables here. I've added a CentOS 6 specific Dockerfile template that sets these in the system-wide
$R_HOME/etc/Makevars.site
. The values were copied from the defaults on CentOS 7, and similar to what others have recommended. The tests pass now, but I think we should try building CRAN on 3.6-centos6 to truly test it later.References