简体   繁体   English

从R运行Java / Scala代码

[英]Running Java/Scala code from R

I want to run a some Java or Scala code from within R (to be more specific, I'd like to run the POJO built by H2O from within R itself). 我想从R内部运行一些Java或Scala代码(更具体地说,我想从R内部运行H2O构建的POJO)。 Is there a way to do that? 有没有办法做到这一点? So far I just found solutions for the opposite case, of executing R programs from Java.. 到目前为止,我只是找到了相反情况的解决方案,即从Java执行R程序。

You should try rJava . 您应该尝试rJava This will allow you to call Java class from your R program in a more native fashion. 这将允许您以更本地的方式从R程序调用Java类。 A basic HelloWorld tutorial is here 基本的HelloWorld教程在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM