R编译器是否存在? [英] Does an R compiler exist?

查看:281
本文介绍了R编译器是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道最好的部署方式。Matlab有matlab编译器(MCR)。已经讨论过R类似的过程,将R编译成C或C ++。有谁有任何经验,由John Garvin在Rice开发的 R到C编译器(RCC) a>?



我已经研究了它,似乎是唯一一个将R代码编译成可执行代码的项目。据我所知,它还没有被使用。



:要清楚,我知道有C和C ++(和Java,Python等)接口到R(rJava,rcpp,Rpy等)。我想知道有关编译和部署R代码的具体方法,而不需要先安装R。



:John Mellor- Crummey告诉我,他们仍然在RCC工作,希望能在4个月左右(最早)提供。

解决方案

一个字节代码编译器将成为R 2.13版本的一部分。默认情况下,此版本未使用,但可用;我期望2.14版本将默认字节编译所有的基础和推荐的包。编译器::编译帮助页面和 R安装和管理手册给出了一些更多的细节。


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?

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:]: 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 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.

解决方案

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.

这篇关于R编译器是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆