search for: waitforr

Displaying 6 results from an estimated 6 matches for "waitforr".

Did you mean: waitfor
2011 May 25
0
issues with rJava; cannot run JRI example
...ello, I am trying to run JRI example from rJava, but I have some issues. I have read many posts and didn't find any solution to my problem. I have the following code: Rengine re = new Rengine(null, false, null); System.out.println("Rengine created, waiting for R"); if (!re.waitForR()) { System.out.println("Cannot load R"); return; } System.out.println("re-routing stdout/err into R console"); But I get the message: Creating Rengine........ Java Result: 10 When I run the program. It never reaches the state...
2011 Jan 04
1
an error about JRI
...e is as follows: public static void main(String[] args) { System.out.println("Creating Rengine (with arguments)"); Rengine re=new Rengine(args, false, null); System.out.println("Rengine created, waiting for R"); if (!re.waitForR()) { System.out.println("Cannot load R"); return; } However, everytime I run it. it teminated after print out "Creating Rengine (with arguments)" never successfully print out "Rengine created, waiting for R" I do not know what is...
2010 Mar 24
1
R and/or REngine kills Java
...ot;** Version mismatch - Java files don't match library version."); System.exit(1); } // creating R engine Rengine rEngine = new Rengine(null, false, new EmptyCallbacks()); // the engine creates R is a new thread, so we should wait until it's ready if (!rEngine.waitForR()) { System.out.println("Cannot load R for " + this.getClass().getName()); return; } // executing logic try { assign(rEngine, "filename", filepath); eval(rEngine, "source(filename)"); } catch (Exception e) { System.out.println(...
2011 Apr 05
0
kmeans clustering java
...m java. Here's my code: 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 null; } re.eval ("rmatrix <- matrix(data = NA, nrow = "+rows+", ncol ="+(columns-1)+", byrow = FALSE)");//,dimnames = )"); REXP rp= re.eval(hDr); //loop through the matrix and...
2009 Mar 30
0
Problem in S4 object displaying from within a Java application using JRI
...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; } try { re.eval("library(kappalab)", true); re.eval("library(methods)", true); re.eval("mu1 <- c(59.73, 27.94,89.67, 62.4...
2010 Mar 24
0
R-help ordinal regression
...??? } > ??? ??? ??? > ??? // creating R engine > ??? ??? ??? > ??? Rengine rEngine = new Rengine(null, > false, new EmptyCallbacks()); > ??? ??? ??? > ??? // the engine creates R is a new thread, > so we should wait until it's ready > ??? ??? ??? > ??? if (!rEngine.waitForR()) { > ??? ??? ??? > ??? ??? > System.out.println("Cannot load R for " + > this.getClass().getName()); > ??? ??? ??? > ??? ??? return; > ??? ??? ??? > ??? } > > ??? ??? ??? > ??? // executing logic > ??? ??? ??? > ??? try { > ??? ??? ??? > ???...