当前位置: 首页>>代码示例>>Java>>正文


Java Rengine.end方法代码示例

本文整理汇总了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();
}
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:21,代码来源:StartJRI.java

示例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");
}
 
开发者ID:axel-halin,项目名称:Thesis-JHipster,代码行数:25,代码来源:RAnalysis.java

示例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");
	}
 
开发者ID:axel-halin,项目名称:Thesis-JHipster,代码行数:28,代码来源:Sampling.java

示例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();
  }
 
开发者ID:starqiu,项目名称:RDMP1,代码行数:23,代码来源:rtest3.java

示例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");
}
 
开发者ID:axel-halin,项目名称:Thesis-JHipster,代码行数:53,代码来源:rBoxplot.java


注:本文中的org.rosuda.JRI.Rengine.end方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。