R 与其他非 Java 语言的接口/将 R 编译为可执行文件

发布于 2024-11-15 12:39:21 字数 502 浏览 1 评论 0原文

我开发了一个与数据库一起使用的 .R 脚本,进行一系列处理并输出图形和表格。我可以将该数据输出为逗号分隔值和图片,以便稍后将它们导入到我的软件中,这没有问题。

问题是如何分发我的应用程序而无需在客户端上完整安装 R。我见过 RJava 之类的东西,但我的应用程序是在 VB6 上(是的......)并且我没有看到任何库或编译为 exe 的方法。 compile 包仅生成您定义的任何函数的编译版本,就像 psyco 用于 Python 的操作(在 Pypy 之前)。

有谁对编译 R 以避免用户安装整个附加软件有一些见解吗?

编辑: R 编译器存在吗? 这个问题与我密切相关,但我还没有没有看到如何使用它来将完整的脚本制作为可执行文件。您可以直接编译一个主函数并将其cat到一个文件中吗?这可能吗?

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.

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).

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

EDIT: 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灰色世界里的红玫瑰 2024-11-22 12:39:22

简短的回答是“不,那行不通”。

根本没有编译器允许您收缩应用程序。因此,最好的方法可能是

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文