[Rcpp-devel] trying to insert a number as first element of already existing vector

Mark Leeds markleeds2 at gmail.com
Mon Dec 10 18:56:17 CET 2018


Thanks Jeff. I'll check those out.  I recently found a gist of Gabor that
explains the relation
between Rcpp and the concept of pointers in C.

https://gist.github.com/ggrothendieck

On Mon, Dec 10, 2018 at 11:29 AM Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote:

> The archives probably weren't what Mark was hoping for, though they are
> good medicine. Reading the R documentation [1] is probably also good
> medicine that Mark is hoping (in vain) to avoid. And then there is the
> topic of conventional C++ memory handling, which is relevant but for which
> there are easily hundreds of tutorials unrelated to Rcpp. Syntactic sugar
> like Rcpp makes coding safer and reduces boilerplate code, but if you want
> performance then there really is no substitute for understanding what that
> sugar does for you.
>
> [1] https://cran.r-project.org/doc/manuals/r-release/R-ints.html
>
>
> https://stackoverflow.com/questions/41602024/should-i-prefer-rcppnumericvector-over-stdvector
>
> On December 10, 2018 8:01:40 AM PST, Serguei Sokol <
> serguei.sokol at gmail.com> wrote:
> >Le 10/12/2018 à 16:48, Mark Leeds a écrit :
> >...
> >> Oh, as I said, the documentation on Rcpp is incredible but is there
> >> anything discussing memory because
> >> I'm pretty lost on that. Thanks again.
> >Are you talking about this list archives?
> >http://lists.r-forge.r-project.org/pipermail/rcpp-devel/
> >
> >Serguei.
> >_______________________________________________
> >Rcpp-devel mailing list
> >Rcpp-devel at lists.r-forge.r-project.org
> >https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
> --
> Sent from my phone. Please excuse my brevity.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20181210/ac7a0749/attachment-0001.html>


More information about the Rcpp-devel mailing list