<div dir="ltr">Martyn,<div><br></div><div>This ultimately solved my problem. However, I also needed to set CXX1X as R continued to try and use the 4.6.3 version. Once both CXX1X and CXX1XSTD were set in the HOME/.R/Makevars.win file, the compilation ran successfully.</div><div><br></div><div>Thanks,</div><div>Charles</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 10:57 AM, Martyn Plummer <span dir="ltr"><<a href="mailto:plummerm@iarc.fr" target="_blank">plummerm@iarc.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you try setting this flag in the Makevars.win file of your package<br>
then it will be overridden by the site-wide Makeconf which is included<br>
after your package-specific Makevars.win (See section 1.2.1 of R-exts)<br>
<br>
What you need to do is set it in a personal file HOME/.R/Makevars.win<br>
(See R-admin 6.3.3). On Windows, "HOME" is usually your Documents<br>
folder.<br>
<span class="HOEnZb"><font color="#888888"><br>
Martyn<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, 2015-11-10 at 10:45 -0600, Charles Determan wrote:<br>
> The std=c++0x is not sufficient for my purposes as it doesn't support<br>
> template aliases. I have tried to set CXX1XSTD=-std=c++11 in the<br>
> Makevars.win but it doesn't appear to register. The build proceeds as<br>
> if I never set the variable. Are the any packages that accomplish<br>
> this?<br>
><br>
><br>
> Charles<br>
><br>
> On Tue, Nov 10, 2015 at 10:42 AM, Martyn Plummer <<a href="mailto:plummerm@iarc.fr">plummerm@iarc.fr</a>><br>
> wrote:<br>
> On Tue, 2015-11-10 at 10:30 -0600, Dirk Eddelbuettel wrote:<br>
> > On 10 November 2015 at 10:18, Charles Determan wrote:<br>
> > | Okay, is there a way for me to use the newer compiler for<br>
> building the package<br>
> > | on Windows? I've tried everything I can think of and fail<br>
> to get the new one<br>
> > | to register when building a package.<br>
> ><br>
> > Set CXX1X in Makevars or in R's $RHOME/etc/Makeconf<br>
><br>
> It is the flag CXX1XSTD that should be overridden. With the<br>
> Windows CRAN<br>
> binary it is set to:<br>
><br>
> CXX1XSTD = -std=c++0x<br>
><br>
> For more details on custom compilation see section 6.3.3 of<br>
> the R<br>
> Installation and Administration manual (a.k.a R-admin)<br>
><br>
> Martyn<br>
><br>
> > Dirk<br>
> ><br>
><br>
> -----------------------------------------------------------------------<br>
> This message and its attachments are strictly confidential. If<br>
> you are<br>
> not the intended recipient of this message, please immediately<br>
> notify<br>
> the sender and delete it. Since its integrity cannot be<br>
> guaranteed,<br>
> its content cannot involve the sender's responsibility. Any<br>
> misuse,<br>
> any disclosure or publication of its content, either whole or<br>
> partial,<br>
> is prohibited, exception made of formally approved use<br>
> -----------------------------------------------------------------------<br>
><br>
><br>
<br>
-----------------------------------------------------------------------<br>
This message and its attachments are strictly confidential. If you are<br>
not the intended recipient of this message, please immediately notify<br>
the sender and delete it. Since its integrity cannot be guaranteed,<br>
its content cannot involve the sender's responsibility. Any misuse,<br>
any disclosure or publication of its content, either whole or partial,<br>
is prohibited, exception made of formally approved use<br>
-----------------------------------------------------------------------<br>
</div></div></blockquote></div><br></div>