How do you call R methods from Java? I want to create a GUI using Swing in Jaa that calls R methods in Java. -- View this message in context: http://r.789695.n4.nabble.com/Creating-R-objects-in-Java-tp2904497p2904497.html Sent from the R help mailing list archive at Nabble.com.
On 10/1/10 9:18 AM, lord12 wrote:> How do you call R methods from Java? I want to create a GUI using Swing in > Jaa that calls R methods in Java. > >Look in the documentation for the rJava package -- Abhijit Dasgupta, PhD Director and Principal Statistician ARAASTAT Ph: 301.385.3067 E: adasgupta at araastat.com W: http://www.araastat.com
It seems that you can call Java objects from R but that you cannot call R objects from Java using the RJava interface. -- View this message in context: http://r.789695.n4.nabble.com/Creating-R-objects-in-Java-tp2904497p2953611.html Sent from the R help mailing list archive at Nabble.com.
Have you looked at JRI ? http://www.rforge.net/JRI/ Michael On 4 October 2010 09:29, lord12 <trexinsd at yahoo.com> wrote:> > It seems that you can call Java objects from R but that you cannot call R > objects from Java using the RJava interface. > -- > View this message in context: http://r.789695.n4.nabble.com/Creating-R-objects-in-Java-tp2904497p2953611.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
you can use RCaller to call R scripts and handle R variables from Java using a simple way. http://www.mhsatman.com/rcaller.php -- View this message in context: http://r.789695.n4.nabble.com/Creating-R-objects-in-Java-tp2904497p2955419.html Sent from the R help mailing list archive at Nabble.com.