Does an R compiler to C/C++ exist?(是否存在 C/C++ 的 R 编译器?)
问题描述
我想知道部署 R 的最佳方式.Matlab 有matlab 编译器"(MCR).过去曾讨论过将 R 编译成 C 或 C++ 的类似 R 的东西.有没有人对由 John Garvin at Rice 开发的 R to C Compiler (RCC) 有任何经验一个>?
I'm wondering about the best way to deploy R. Matlab has the "matlab compiler" (MCR). There has been discussion about something similar in the past for R that would compile R into C or C++. Does anyone have any experience with the R to C Compiler (RCC) that was developed by John Garvin at Rice?
我研究过它,它似乎是唯一一个将 R 代码编译为可执行代码的项目.据我所知,它还没有被使用.
I've looked into it, and it seems to be the only project that worked on compiling R code into executable code. And as far as I can tell, it isn't still being used.
[Edit 1:]:要清楚,我知道有 C 和 C++(以及 Java、Python 等)到 R(rJava、rcpp、Rpy 等)的接口.我想知道在不提前安装 R 的情况下编译和部署 R 代码的具体方法.
: To be clear, I know that there are C and C++ (and Java, Python, etc.) interfaces to R (rJava, rcpp, Rpy, etc.). I'm wondering about specific ways to compile and deploy R code without installing R in advance.
[Edit 2:]:John Mellor-Crummey 告诉我他们仍在研究 RCC,并希望在 4 个月左右(最早)内推出.如果我发现其他任何东西,我会进一步更新.
: John Mellor-Crummey tells me that they're still working on RCC and hope to make it available in 4 months or so (at the earliest). I'll update this further if I find anything else out.
推荐答案
字节码编译器将成为 R 2.13 版本的一部分.默认情况下,此版本中不使用它,但它可用;我希望 2.14 版本将默认字节编译所有基本和推荐的包.compiler::compile 帮助页面和 R 安装和管理手册提供了更多详细信息.
A byte code compiler will be part of the R 2.13 release. By default it is not used in this release but it is available; I expect the 2.14 release will by default byte compile all base and recommended packages. The compiler::compile help page and the R Installation and Administration Manual give some more details.
这篇关于是否存在 C/C++ 的 R 编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否存在 C/C++ 的 R 编译器?
基础教程推荐
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 如何在 C++ 中正确使用命名空间? 2022-01-01
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- 提升 ASIO 流缓冲 2021-01-01
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
- c++ STL设置差异 2022-01-01
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
