calling R script from java

后端 未结 5 1946
梦如初夏
梦如初夏 2020-12-08 05:36

I would like to call an R script from Java. I have done google searches on the topic, but almost all of the results I have seen would require me to add a dependency to some

5条回答
  •  离开以前
    2020-12-08 05:56

    You can easily adapt this code: http://svn.rforge.net/org/trunk/rosuda/REngine/Rserve/test/StartRserve.java

    Among other things it finds R and runs a fixed script in R - you can replace that script with with your script and ignore the last two methods.

提交回复
热议问题