<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>