[Rcpp-devel] C++11 in Windows R package
matteo.fasiolo at gmail.com
Tue Jun 3 18:24:12 CEST 2014
could it be that yesterday the official RccpArmadillo version on CRAN
was 0.4.300.7.0 (the one with the new armadillo macro),
while today it's 0.4.300.0? Or did I dream about it? :)
On Sun, Jun 1, 2014 at 3:50 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> Hi Matteo,
> On 1 June 2014 at 15:37, Matteo Fasiolo wrote:
> | Hi Dirk,
> | thanks for the fix. Both the package created using
> | RcppArmadillo.package.skeleton() and my original
> | package work on Windows when the new flag is added and the new
> | version is used.
> | I was a bit surprised to see that they work also on win-builder, which (I
> | guess) links against the old RcppArmadillo version.
> Maybe it was a side-effect -- I tossed versions up there for testing --
> but you'd think they'd run in a separate environment.
> I have submitted this version to CRAN, unless something comes up it should
> the release version by tomorrow.
> Thanks, Dirk
> | Thanks,
> | Matteo
> | On Sat, May 31, 2014 at 8:16 PM, Dirk Eddelbuettel <edd at debian.org>
> | Matteo,
> | Try updating RcppArmadillo from the GitHub repo. It now contains a
> | candidate for 0.4.300.7.0, based on an updated Armadillo 4.300.7 in
> | Conrad added
> | #define ARMA_DONT_USE_CXX11
> | which you should set, either via a -DARMA_DONT_USE_CXX11 to, say,
> | PKG_CXXFLAGS
> | in src/Makevars (or just src/Makevars.win), or in your code before
> | #include <RcppArmadillo.h>
> | With this, and even though you turn on C++11 for _your code_ it will
> | use
> | C++11 in Armadillo avoiding the issue experienced on Windows where
> | 4.6.2
> | is not new enough for some of the idioms used inside Armadillo.
> | But as Armadillo is so neatly #ifdef'ed you should still be able to
> set up
> | your package and proceed.
> | Give it a spin and let us know how it goes. I plan to ship this
> version of
> | RcppArmadillo to CRAN in the next few days.
> | Cheers, Dirk
> | --
> | Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel