[R] Network Alternative to rJava/JRI?

Ista Zahn istazahn at gmail.com
Wed Apr 26 17:27:13 CEST 2017


Shiny could probably work, but https://www.opencpu.org/ is probably a
better fit.

Best,
Ista

On Wed, Apr 26, 2017 at 9:55 AM, Jake Stone <jake at jakestone.net> wrote:
> I am a java programmer, quite new to R.
>
> I am familiar with rJava/JRI, but would prefer a distributed networked
> architecture for my systems.
>
> TASK:
>
>    - Java runs an NLP analysis of a text. It then sends an array (vector)
>    of variables to R
>    - R predicts the class of the input vector based on a pre-analyzed
>    discriminant analysis of a full dataset in R.
>    - R returns the class prediction to java.
>
> IDEAL SOLUTION
> R is an online webserver (perhaps shiny?) that "waits" for a request sent
> via http. (This is similar to a jave servlet on a webserver)
> Java program sends an http request with the array of variables
> R responds with a response of the class prediction.
>
> QUESTION
> Is there an extant architecture that supports this. I expect shiny can do
> this, but I am hesitant to spend two or three days learning shiny unless I
> am confident the effort will pay off.
>
> best
>
> jake
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list