Question:
I'm working on a project and I have to integrate R
language with Java
.
Could you help me indicating a good library or code ( Hello World ) that does this integration?
Answer:
According to an answer on the OS :
The user who answered the question was already able to successfully integrate using two alternatives.
JRI :
- Advantage : probably has better performance.
- Disadvantage : you need to configure some environment variables and different libraries on Windows and Unix.
Aserves :
- Advantage : easy to configure, no need to initialize R or link any R library, can run on different machines.
- Disadvantage : TCP/IP based (a server must be running), no R callbacks.
Another alternative he never used: RCaller