问题
I'm using JRI to execute R from Java and I saw that JRI use the eval()
method to execute the R commands. I have one R script for execution.
How I can load this script in JRI and execute it?
回答1:
You can run an entire script with the R command source()
来源:https://stackoverflow.com/questions/8037411/how-i-can-load-a-r-script-into-jri-and-execute-from-java