How can I load an R script in a JRI and execute with Java?

I use a JRI to execute R from Java, and I saw that the JRI uses a method eval()to execute R commands. I have one R script to execute.

How can I load this script in a JRI and execute it?

+5
source share
1 answer

You can run the whole script with the R command source()

+5
source

All Articles