<div dir="ltr">Hi All,<div><br></div><div> I have put the <a href="http://cran.r-project.org/web/packages/mvnfast/index.html">package on CRAN</a>, but I get <a href="http://cran.r-project.org/web/checks/check_results_mvnfast.html">errors on some platform</a>.</div>
<div><br></div><div>In particular, on r-devel-linux-x86_64-fedora-clang, r-devel-osx-x86_64-clang and r-release-osx-x86_64-mavericks I get:</div><div><br></div><div><div>In file included from rmvnCpp.cpp:20:</div><div>In file included from ./mvnfast.h:4:</div>
<div>In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:30:</div><div>In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadilloForward.h:37:</div>
<div>In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/armadillo:48:</div><div>/usr/local/include/c++/v1/random:3641:44: error: non-type template argument is not a constant expression</div><div>
const size_t __logR = __log2<uint64_t, _URNG::max() - _URNG::min() + uint64_t(1)>::value;</div></div><div><br></div><div>Which I don't know how to interpret, but maybe you do. </div><div><br></div><div>On the other hand on r-oldrel-windows-ix86+x86_64, I get:</div>
<div><br></div><div><div>* installing *source* package 'mvnfast' ...</div><div>** package 'mvnfast' successfully unpacked and MD5 sums checked</div><div>** libs</div><div><br></div><div>*** arch - i386</div>
<div>make[1]: Entering directory `/cygdrive/d/temp/Rtmp8Se4FX/R.INSTALL234440b452a3/mvnfast/src-i386'</div><div>g++ -I"D:/Rcompile/recent/R-3.0.3/include" -DNDEBUG -I"d:/RCompile/CRANpkg/lib/3.0/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.0/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include" -DARMA_DONT_USE_CXX11 -O2 -Wall -mtune=core2 -c dmvnCpp.cpp -o dmvnCpp.o</div>
<div>In file included from d:\compiler\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/random:35:0,</div><div> from mvnfast.h:5,</div><div> from dmvnCpp.cpp:20:</div>
<div>d:\compiler\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.</div>
</div><div><br></div><div>Could it be that the flag CXX_STD = CXX11 was not supported by this older windows release? Can I solve this issue by using Depends R(>= something) in Description?</div><div><br></div><div>Many thanks,</div>
<div><br></div><div>Matteo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 6:09 PM, Matteo Fasiolo <span dir="ltr"><<a href="mailto:matteo.fasiolo@gmail.com" target="_blank">matteo.fasiolo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dirk,<div><br></div><div> no problem, in any case I can always get the new <span style="font-family:arial,sans-serif;font-size:13px">RcppArmadillo from Github</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">and use that to build my package on Windows.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I am quite sure yesterday my package was working on win-builder and I might</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">have read </span><span style="font-family:arial,sans-serif;font-size:13px">0.4.300.8.0 somewhere. Then today it wasn't working any more</span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px">so I got confused.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks for the clarification.</span></div><span class="HOEnZb"><font color="#888888"><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><font face="arial, sans-serif">Matteo</font></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 5:57 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Matteo,<br>
<div><br>
On 3 June 2014 at 17:24, Matteo Fasiolo wrote:<br>
| could it be that yesterday the official RccpArmadillo version on CRAN<br>
| was 0.4.300.7.0 (the one with the new armadillo macro),<br>
| while today it's 0.4.300.0? Or did I dream about it? :)<br>
<br>
</div>:-/<br>
<br>
You were dreaming. Or maybe you saw it in the incoming/ directory.<br>
<br>
I did pretty extensive tests on 0.4.300.7.0 (which passes R CMD check for 64<br>
out of 67 CRAN packages using RcppArmadillo; a few details in the rcpp-logs<br>
repo on GitHub) and submitted it. CRAN bemoaned a bashism in the small<br>
little configure script, as well as something to setup temporary files for<br>
unit tests (which has not changed in ages), so I fixed both of these issues<br>
and resubmitted. And keep waiting.<br>
<br>
In the meantime Conrad rolled up 4.300.8 so I created 0.4.300.8.0 and<br>
submitted that. And keep waiting.<br>
<br>
One day... In the meantime, you get the sources from GitHub but for windows<br>
builds at CRAN, and the win-builder service, we have to wait. FWIW I have<br>
also been waiting for three weeks now to have an additional static library<br>
(hiredis, used by RcppRedis) installed on win-builder.<br>
<br>
Sometimes, our hands are tied and there is nuttin' we can do. Sorry.<br>
<div><div><br>
Dirk<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>