Open GoogleCodeExporter opened 8 years ago
Hi,
I am using R-3.1.2 in my windows 7.
I have included RCaller-2.4-SNAPSHOT.jar in my web project and calling the
below code.i am getting exception as Can not handle R results due to :
rcaller.exception.RCallerParseException: Can not parse the R output:
org.xml.sax.SAXParseException: Premature end of file.
I have installed Runiversal package as well.
RCaller caller=new RCaller();
caller.setRscriptExecutable("C:/Program Files/R/R-3.1.2/bin/Rscript");
RCode code1 = new RCode();
StringBuffer code=new StringBuffer();
code.append("x<-rnorm(10);");
code.append("y<-rnorm(10);");
code.append("ols<-lm(y~x);");
code.append("s<-summary(ols);");
code1.setCode(code);
caller.runAndReturnResult(code1.toString());
String[] fields=caller.getParser().getAsStringArray("s");
Original comment by krish.bh...@gmail.com
on 20 Jan 2015 at 11:39
There is no such field as 's' in object ols.
Try
[] fields=caller.getParser().getAsX("residuals");
or
[] fields=caller.getParser().getAsX("fitted.values");
or a field name which is a member of object ols.
Original comment by mhsatman
on 20 Jan 2015 at 11:47
can any one tell me how to install RCaller in java eclipse in windows 7...???
need full detailed guidance .......
Original comment by kaj...@gmail.com
on 23 May 2015 at 5:00
Original issue reported on code.google.com by
mhsatman
on 22 Jul 2011 at 8:10