I have the following code.
public void rFun() {
Rsession instance = RConnect.getInstance();
instance.eval("load(\".RData\")");
REXP x = instance.eval("xyz <- c(10,20,30)");
try {
System.out.println("xyz -> "+x.asString());
} catch (REXPMismatchException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
I am creating an RList, but when I try to get the list in java it is displaying only the first value i.e. 10
.
How to get all the values of the list?