[Rcpp-devel] Rcpp modules take 3, now with a vignette

Davor Cubranic cubranic at stat.ubc.ca
Thu May 27 23:48:38 CEST 2010


That's pretty cool. It's good to know it should be doable -- I'll give it a whack, once (if) I graduate to that level of expertise with template meta-programming and R internals.

Davor


On 2010-05-27, at 12:36 PM, Romain Francois wrote:

> Davor,
> 
> Rcpp modules currently does not handle enum types, but Boost.Python does, so I suppose we could have similar syntax.
> 
> http://www.boost.org/doc/libs/1_43_0/libs/python/doc/v2/enum.html
> 
> This is not high on my priority list, but if you want to prepare some patch, I'll look into it.
> 
> Romain
> 
> Le 27/05/10 18:45, Davor Cubranic a écrit :
>> Hi Romain,
>> 
>> Can you tell me if this mechanism can somehow be used for passing enum-type arguments from R to Rcpp? I'm currently using strings or integers, and hope there can be an easier way to keep the two sides of the code from getting out of sync.
>> 
>> Davor
>> 
>> 
>> On 2010-05-27, at 2:35 AM, Romain Francois wrote:
>> 
>>> Hello,
>>> 
>>> I've made a quick (5 pages) vignette about the current feature set of Rcpp modules. I've pushed the current version here:
>>> http://addictedtor.free.fr/misc/rcpp/Rcpp-modules.pdf
>>> 
>>> The vignette is essentially a compilation of my last two emails about modules.
>>> 
>>> Romain.
>>> 
>>> BTW: The c++ code is highlighted using the "highlight" program (http://www.andre-simon.de/) and the R code is highlighted by the R package "highlight" from CRAN.
> 
> 
> -- 
> Romain Francois
> Professional R Enthusiast
> +33(0) 6 28 91 30 30
> http://romainfrancois.blog.free.fr
> |- http://bit.ly/cork4b : highlight 0.1-8
> |- http://bit.ly/bklUXt : RcppArmadillo 0.2.1
> 
`- http://bit.ly/936ck2 : Rcpp 0.8.0



More information about the Rcpp-devel mailing list