[R] Evaluating R functions in Java with dynamic input
lord12
trexinsd at yahoo.com
Sun Oct 17 03:42:27 CEST 2010
So I have an R function:
function = foo(x)
{
return(x)
}
In java:
I create an Rengine:
Rengine re = new Rengine(args,false,new TextConsole());
int blah = 5
re.eval("foo(blah)");
I get an error(object blah not found). How do I dynamically evaluate my
functions given user input(without hard coding it)? It works when I do
re.eval("foo(blah)") .
--
View this message in context: http://r.789695.n4.nabble.com/Evaluating-R-functions-in-Java-with-dynamic-input-tp2998735p2998735.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list