是否可以通过rJava / JRI在Processing中运行R?如果我在网络上部署了一个Processing应用程序,客户端是否需要在他们的系统上使用R?
我正在寻找一个可以在网络上部署的交互式信息仪表板.对于互动/网络部分而言,Processing似乎是我最好的选择.不幸的是,它看起来并不像内置的许多数学/统计功能.并且没有任何用于绘制数据的库.
我一直在使用R和gpplot2几个月,我很高兴(惊讶)它操作和绘制数据的容易程度.
所以我现在想知道是否可以获得两全其美并通过Processing applet运行R.
来自JRI网站:
JRI is a Java/R Interface,which allows to run R inside Java
applications as a single thread.
Basically it loads R dynamic library
into Java and provides a Java API to R
functionality. It supports both simple
calls to R functions and a full
running REPL.In a sense JRI is the inverse of rJava
and both can be combined (i.e. you can
run R code inside JRI that calls back
to the JVM via rJava). The JGR project
makes the full use of both JRI and
rJava to provide a full Java GUI for
R.JRI uses native code,but it supports
all platforms where Sun’s Java (or
compatible) is available,including
Windows,Mac OS X,Sun and Linux (both
32-bit and 64-bit).
感谢您的建议 :)
有关如何使用它的简单示例,请参见this related question.
除了看几次之外,我还没有真正使用过Processing,但我的理解是它有自己的语言.