本文整理汇总了Java中org.rosuda.JRI.Rengine.end方法的典型用法代码示例。如果您正苦于以下问题:Java Rengine.end方法的具体用法?Java Rengine.end怎么用?Java Rengine.end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.rosuda.JRI.Rengine
的用法示例。
在下文中一共展示了Rengine.end方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import org.rosuda.JRI.Rengine; //导入方法依赖的package包/类
public static void main(String[] args) {
System.out.println("Creating Rengine (with arguments)");
// If not started with --vanilla, funny things may happen in this R
// shell.
String[] Rargs = { "--vanilla" };
Rengine re = new Rengine(Rargs, false, null);
System.out.println("Rengine created, waiting for R");
// the engine creates R is a new thread, so we should wait until it's
// ready
if (!re.waitForR()) {
System.out.println("Cannot load R");
return;
}
ImportingObjs.Start(re);
ExportingObjs.Start(re);
re.end();
}
示例2: main
import org.rosuda.JRI.Rengine; //导入方法依赖的package包/类
public static void main(String[] args) {
// just making sure we have the right version of everything
if (!Rengine.versionCheck()) {
System.err.println("** Version mismatch - Java files don't match library version.");
System.exit(1);
}
System.out.println("Creating Rengine (with arguments)");
Rengine re=new Rengine(args, false, new TextConsole());
System.out.println("Rengine created, waiting for R");
// the engine creates R is a new thread, so we should wait until it's ready
if (!re.waitForR()) {
System.out.println("Cannot load R");
return;
}
selectOneEnabled(re);
selectOneDisabled(re);
selectMostEnabledDisabled(re);
re.end();
System.out.println("end");
}
示例3: main
import org.rosuda.JRI.Rengine; //导入方法依赖的package包/类
public static void main(String[] args) {
// just making sure we have the right version of everything
if (!Rengine.versionCheck()) {
System.err.println("** Version mismatch - Java files don't match library version.");
System.exit(1);
}
System.out.println("Creating Rengine (with arguments)");
re= new Rengine(args, false, new TextConsole());
System.out.println("Rengine created, waiting for R");
// the engine creates R is a new thread, so we should wait until it's ready
if (!re.waitForR()) {
System.out.println("Cannot load R");
System.exit(1);
}
RAnalysis.readCSV(re,"jhipsterFeatures.csv","data");
System.out.println("File read");
//oneEnabled(re);
//oneDisabled(re);
mostEnabledDisabled(re);
re.end();
System.out.println("done");
}
示例4: callRJava
import org.rosuda.JRI.Rengine; //导入方法依赖的package包/类
public void callRJava() {
Rengine re = new Rengine(new String[] { "--vanilla" }, false, new rtest3());
if (!re.waitForR()) {
System.out.println("Cannot load R");
return;
}
//String path = re.jriChooseFile(0);
String cmd = "source('/home/starqiu/workspace/RDMP1/src/main/java/ustc/sse/r/tbmr.R',echo=TRUE)";
//String cmd = "source('/home/starqiu/workspace/RDMP1/src/main/java/ustc/sse/r/WordCount.R',echo=TRUE)";
String rv = re.eval(cmd).asString();
/*System.out.println(rv);
String cmd2="area(10)";
REXP res = re.eval(cmd2);
System.out.println(res.asDouble());
res = re.eval("a");
for (int b : res.asIntArray()) {
System.out.println(b);
}*/
re.end();
}
示例5: main
import org.rosuda.JRI.Rengine; //导入方法依赖的package包/类
public static void main(String[] args) {
// just making sure we have the right version of everything
if (!Rengine.versionCheck()) {
System.err.println("** Version mismatch - Java files don't match library version.");
System.exit(1);
}
System.out.println("Creating Rengine (with arguments)");
// 1) we pass the arguments from the command line
// 2) we won't use the main loop at first, we'll start it later
// (that's the "false" as second argument)
// 3) the callbacks are implemented by the TextConsole class above
Rengine re=new Rengine(args, false, new TextConsole());
System.out.println("Rengine created, waiting for R");
// the engine creates R is a new thread, so we should wait until it's ready
if (!re.waitForR()) {
System.out.println("Cannot load R");
return;
}
createCircleTypeApp(re);
createCircleBuildResult(re);
createBoxplotTimeBuildWithoutDockerApp(re);
createBoxplotTimeBuildWithDockerApp(re);
createBoxplotTimeBuildWithoutDockerBuildTool(re);
createBoxplotTimeBuildWithDockerBuildTool(re);
createBoxplotTimeCompile(re);
createBoxplotTimeGeneration(re);
createBoxplotCoverage(re);
createBoxplotImageDockerApplications(re);
createBoxplotImageDockerDB(re);
createBalloonPlot(re);
createBalloonPlotBugsFeatures(re);
createPieChartBuildResultByBuildTool(re);
createBoxplotCucumeberDatabase(re);
re.end();
System.out.println("end");
}