[RQt-devel] Rcpp

Michael Lawrence lawrence.michael at gene.com
Tue Jan 19 15:34:47 CET 2010


Thanks for passing this along. Rcpp has come a long way. It could be very
useful as we add more type conversions. The inline compilation is also cool
for experimentation.

Michael

On Tue, Jan 19, 2010 at 1:50 AM, Romain Francois <romain.francois at dbmail.com
> wrote:

> Hello,
>
> I just wanted to draw your attention to the new version of Rcpp, that I
> think might be useful for qtinterfaces (maybe not).
>
> Rcpp has been completely redesigned over the holidays (while keeping the
> existing interface). Now we have many C++ classes that basically act as
> proxy classes for the SEXP they encapsulate. So that the object takes
> care of protection/release to the garbage collection.
>
> We cover just about every (useful) SEXP type. For example, manipulating
> a character vector can look like this :
>
> /* creating a character vector of two elements */
> Rcpp::CharacterVector x(2);
> x[0] = "foo" ;
> x[1] = "bar" ;
>
> Romain
>
> --
> Romain Francois
> Professional R Enthusiast
> +33(0) 6 28 91 30 30
> http://romainfrancois.blog.free.fr
> |- http://tr.im/KfKn : Rcpp 0.7.2
> |- http://tr.im/JOlc : External pointers with Rcpp
> `- http://tr.im/JFqa : R Journal, Volume 1/2, December 2009
>
> _______________________________________________
> Qtinterfaces-devel mailing list
> Qtinterfaces-devel at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20100119/3af1b7e4/attachment.htm 


More information about the Qtinterfaces-devel mailing list