I have a simple JRI Code :
<%
Rengine re = Rengine.getMainEngine();
if (re==null){
re = new Rengine (new String [] {"--vanilla"}, false, null);
}
re.eval("pull_data2 <- function(...){df3 <<- read.csv(file=\"/tmp/data.csv\", header=T)}");
re.eval("pull_data2()");
String val = re.eval("df3").toString();
%>
<h3><%=val%></h3>
The values are getting printed on my browser indicating df3 is populated.
But when I login to R on my disk, there is no such "df3" variable. So, how can I see the variable from backend?
> df3
Error: object 'df3' not found
>