Update 2013-03-14-using-bigmemory-with-rcpp.md

Added the BH dependency to the Rcpp header (required to compile successfully), and added a note about package development (you need C++11 as a SystemRequirement to compile without warnings).
Thanks Dirk and JJ,

I have to admit I know very little C++, so there's been a lot of confusion
for me (although I've used C for comp sci classes in the past).

I still get the warning about long long when using just  //
[[Rcpp::plugins(cpp11)]] , but the warning goes away when adding
SystemRequirements: C++11
In fact having // [[Rcpp::plugins(cpp11)]] doesn't seem to change whether
or not I can compile without warnings. I've created a minimal package
around the Rcpp Gallery post that compiles and builds without warnings and
passes R CMD check (using RStudio and roxygen2 to generate the NAMESPACE
file etc.):

https://github.com/sritchie73/bigmemory-rcpp-test






On 12 July 2014 11:45, Dirk Eddelbuettel <notifications@github.com> wrote:

> In _posts/2013-03-14-using-bigmemory-with-rcpp.md:
>
> >  // [[Rcpp::depends(BH, bigmemory)]]
> >  #include <bigmemory/MatrixAccessor.hpp>
> >
> >  #include <numeric>
> >
> > +// You will also need to add the following to your DESCRIPTION file if
> > +// you're developing a package so that it will compile without warnings:
> > +// SystemRequirements: C++11
> > +
>
> Yes, see commit a2c368b
> <https://github.com/jjallaire/rcpp-gallery/commit/a2c368bb49c1d669f02bbc081ef590ebdee85e41>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jjallaire/rcpp-gallery/pull/54/files#r14850869>.
>