Hi all, I am writing R code and I want to interface with JAVA i.e. I want to call R from JAVA. That's why i have installed JRI on my machine. There is also documentation available in "Javadoc". But as i am very new to JAVA and well as R, I don't understand much of it. If someone is using this package i.e. JRI, please let me know whether i am going in right direction or not. As i am using regressions, Boot library etc. in my R codes. Is it possible to use all these if i use JRI package? [[alternative HTML version deleted]]
I think that working with the JRI is a good way to call R from java. You can send arbitrary commands from java to R, so you can load and use add-on packages. On Wed, 12 Sep 2007, Vaibhav Gathibandhe wrote:> Hi all, > > I am writing R code and I want to interface with JAVA i.e. I want to call R > from JAVA. That's why i have installed JRI on my machine. > > There is also documentation available in "Javadoc". > > But as i am very new to JAVA and well as R, I don't understand much of it. > > If someone is using this package i.e. JRI, please let me know whether i am > going in right direction or not. > > As i am using regressions, Boot library etc. in my R codes. Is it possible > to use all these if i use JRI package? > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >
I made the observation that it is easier to call java from R by using rJava. This is very much analogous to calling C or fortran from R, but your mileage can vary. Vaibhav Gathibandhe wrote:> > Hi all, > > I am writing R code and I want to interface with JAVA i.e. I want to call > R > from JAVA. That's why i have installed JRI on my machine. > > There is also documentation available in "Javadoc". > > But as i am very new to JAVA and well as R, I don't understand much of > it. > > If someone is using this package i.e. JRI, please let me know whether i am > going in right direction or not. > > As i am using regressions, Boot library etc. in my R codes. Is it possible > to use all these if i use JRI package? > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > >-- View this message in context: http://www.nabble.com/Someone-Using-Java-R-Interface----JRI---tf4433263.html#a12651536 Sent from the R help mailing list archive at Nabble.com.
We use JRI as par of a R web service infrastructure, where we have Java classes around specific R functions (lm, randomForest, nnet etc) as well as classes that call arbitrary R code You can look at the code at http://cicc-grid.svn.sourceforge.net/ viewvc/cicc-grid/cicc-grid/rws/trunk/src/net/sf/ciccgrid/frontend/ On Sep 12, 2007, at 10:50 PM, Vaibhav Gathibandhe wrote:> Hi all, > > I am writing R code and I want to interface with JAVA i.e. I want > to call R > from JAVA. That's why i have installed JRI on my machine. > > There is also documentation available in "Javadoc". > > But as i am very new to JAVA and well as R, I don't understand > much of it. > > If someone is using this package i.e. JRI, please let me know > whether i am > going in right direction or not. > > As i am using regressions, Boot library etc. in my R codes. Is it > possible > to use all these if i use JRI package? > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- In matrimony, to hesitate is sometimes to be saved. -- Butler