...
首页> 外文期刊>The American statistician >Extending R with C++: A Brief Introduction to Repp
【24h】

Extending R with C++: A Brief Introduction to Repp

机译:用C ++扩展R:Repp简介

获取原文
获取原文并翻译 | 示例
           

摘要

R has always provided an application programming interface (API) for extensions. Based on the C language, it uses a number of macros and other low-level constructs to exchange data structures between the R process and any dynamically loaded component modules authors added to it. With the introduction of the Rcpp package, and its later refinements, this process has become considerably easier yet also more robust. By now, Rcpp has become the most popular extension mechanism for R. This article introduces Rcpp, and illustrates with several examples how the Rcpp Attributes mechanism in particular eases the transition of objects between R and C++ code. Supplementary materials for this article are available online.
机译:R始终提供用于扩展的应用程序编程接口(API)。它基于C语言,使用许多宏和其他低级构造在R进程和添加到其中的任何动态加载的组件模块之间交换数据结构。随着Rcpp软件包的引入及其后来的改进,此过程变得相当容易,但也更加可靠。到目前为止,Rcpp已成为R最受欢迎的扩展机制。本文介绍了Rcpp,并通过几个示例说明了Rcpp Attributes机制如何特别简化了R和C ++代码之间的对象转换。可在线获得本文的补充材料。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号