How I can load a R script into JRI and execute from Java?

我怕爱的太早我们不能终老 提交于 2019-12-23 11:39:28

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!