将R与其他非Java语言接口/将R编译为可执行文件 [英] Interfacing R with other non-Java languages / Compiling R to executable

查看:90
本文介绍了将R与其他非Java语言接口/将R编译为可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个与数据库一起工作的.R脚本,进行了大量处理并输出图形和表格.我可以将这些数据输出为逗号分隔的值和图片,以便以后将它们导入到我的软件中,而我没有任何问题.

I've developed a .R script that works with a DB, does a bunch of processing and outputs graphs and tables. I can output that data as comma-separated values and pictures, to later import them on my software, that I have no issue.

问题在于我如何分发我的应用程序而不必在客户端上完整安装R.我已经看过RJava之类的东西,但是我的应用程序是在VB6上运行的(是的...),但是我没有看到任何库或编译为exe的方法. compile软件包仅生成您定义的任何函数的编译版本,例如psyco以前在Python上所做的工作(在Pypy之前).

The problem is how can I distribute my application without having to make a complete install of R on the client. I've seen things like RJava, but my app is on VB6 (yeah...) and I don't see any libraries, or ways to compile to exe. The compile package only makes compiled versions of any function you define, like what psyco used to do for Python (before Pypy).

有人在编译R方面有一些见识,以避免让用户安装整个附加软件吗?

Does anyone have some insight on compiling R to avoid having the user to install an entire additional software?

是否存在R编译器?这个问题与我的问题密切相关,但是我还没有看到如何使用它来使一个完整的脚本成为exe.您可以仅compile一个主函数并将其cat转换为文件?那有可能吗?

Does an R compiler exist? This question relates deeply to mine, but I haven't seen how it can be used to make a full script an exe. You can just compile a main function and cat it to a file? Is that even possible?

推荐答案

简短的回答是不,那将行不通".

The short answer is "no, that will not work".

根本没有编译器可让您收缩包装您的应用程序.因此,您最好的选择可能是

There simply is no compiler that allows you to shrink-wrap your app. So your best best may be either

  • using the headless Rserve over the network, or
  • using the R (D)COM server used by RExcel et al

这篇关于将R与其他非Java语言接口/将R编译为可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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