[R] Calling R function in Java that in turn calls a Java function

lord12 trexinsd at yahoo.com
Sun Oct 17 06:30:36 CEST 2010


I have a function:
call = function()
{
library(rJava)
.jinit(classpath="C:/Documents and Settings/GV/workspace/Test2/bin",
parameters="-Xmx512m")
blah = .jcall("Test2", "D", "sum", 2,2) 
return(blah)
}

In java I do re.eval(call()) and I get a value of null. If I run the call
function directly from R, however, I get 4 as a result. How do I fix this?
-- 
View this message in context: http://r.789695.n4.nabble.com/Calling-R-function-in-Java-that-in-turn-calls-a-Java-function-tp2998791p2998791.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list