I'd like to ask whether it is possible and whether it is simple to integrate R code into java.
I already have a java webservice. It exposes some REST api that call a java algorithm. However, the java algorithm is slower than R one. So, I'd like to substitute it with R algorithm, or build a new webservice from scratch using R. Is it possible to integrate the R code within java? What's the best way? Would you suggest me to use RServe?