简体   繁体   English

Rcpp糖功能列表?

[英]List of Rcpp sugar functions?

I'm just getting started with Rcpp and wondering if somewhere out there a list of Rcpp sugar functions exists. 我刚开始使用Rcpp,并想知道是否存在Rcpp糖功能列表。 In the process of translating some of my slow code to C/C++ I'll need functionality provided by base R functions like match , tabulate , and which . 在将我的一些慢速代码转换为C / C ++的过程中,我需要基本R函数提供的功能,如matchtabulatewhich

According to Hadley's Advanced R book match is implemented and the Rcpp-sugar vignette lists a few more available functions though it doesn't seem comprehensive. 哈德利的预研书 match实现和RCPP糖暗角列出了几个可用的功能虽然看似全面的它不会。

What I'm really wondering is: is there a way to find, in the documentation of the package, or elsewhere, what sweet-sweet-sweet functions are available and what I'll have to write for myself? 我真正想知道的是:有没有办法在包装文件或其他地方找到什么甜蜜甜蜜的功能以及我必须为自己写的东西? With any other R package I'd go directly to R> help(package = "Rcpp") but that doesn't seem to be much help in this case. 对于任何其他R包,我会直接转到R> help(package = "Rcpp")但在这种情况下似乎没什么帮助。

As luck would have it, I started to document the Rcpp API in a more accessible manner than what is offered by the doxygen documentation. 幸运的是,我开始以比doxygen文档提供的更容易访问的方式记录Rcpp API。 This documentation includes the Rcpp sugar set of functions alongside usable examples. 该文档包括Rcpp糖功能集以及可用示例。 I'm hopeful that Rcpp should ship with this documentation in the 0.13.0. 我希望Rcpp能够在0.13.0中附带这个文档。

In the interim, you can view the source and contribute here: 在此期间,您可以在此处查看来源并做出贡献:

https://github.com/coatless/rcpp-api/blob/master/rcpp-api-docs.Rmd https://github.com/coatless/rcpp-api/blob/master/rcpp-api-docs.Rmd

Or view a rendered version (that is lagged) here: 或者在这里查看渲染版本(滞后):

http://thecoatlessprofessor.com/programming/rcpp/unofficial-rcpp-api-docs/ http://thecoatlessprofessor.com/programming/rcpp/unofficial-rcpp-api-docs/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM