call R from a Java application
2
0
Entering edit mode
@dipl-ing-johannes-rainer-846
Last seen 10.3 years ago
hello, i wanted to know if there are any possibilities to call R functions from a Java application, other than the omegahat SJava package (as i am not able to install this package). thanks in advance
SJava SJava • 1.5k views
ADD COMMENT
0
Entering edit mode
witek ▴ 80
@witek-758
Last seen 10.3 years ago
http://simon.urbanek.info/simon/yawe/research/other.html /E Dipl.-Ing. Johannes Rainer wrote: >hello, >i wanted to know if there are any possibilities to call R functions from a Java >application, other than the omegahat SJava package (as i am not able to install >this package). >thanks in advance > >_______________________________________________ >Bioconductor mailing list >Bioconductor@stat.math.ethz.ch >https://stat.ethz.ch/mailman/listinfo/bioconductor > > > -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin _ tel: 0049-30-83875219 __("< 'v' http://www.molgen.mpg.de/~wolski \__/ / \ mail: witek96@users.sourceforge.net ^^ w w wolski@molgen.mpg.de
ADD COMMENT
0
Entering edit mode
@steffen-durinck-519
Last seen 10.3 years ago
Hi Johannes, you could try the Rserve package from: http://www.rosuda.org/Rserve/ best, Steffen Durinck Dipl.-Ing. Johannes Rainer wrote: >hello, >i wanted to know if there are any possibilities to call R functions from a Java >application, other than the omegahat SJava package (as i am not able to install >this package). >thanks in advance > >_______________________________________________ >Bioconductor mailing list >Bioconductor@stat.math.ethz.ch >https://stat.ethz.ch/mailman/listinfo/bioconductor > > >
ADD COMMENT
0
Entering edit mode
yes, i will try that. i have it already downloaded, but have problems installing it. as i understand, the Rserve is some kind of "application server", that creates a new R instance when the Rconnection is called, and keeps that R workspace available as long as the connection is open, but what with more that one connection? i hope that the objects in the R workspace will not be shared across different connections. thanks for the help Quoting Steffen Durinck <sdurinck@ebi.ac.uk>: > Hi Johannes, > > you could try the Rserve package from: > > http://www.rosuda.org/Rserve/ > > best, > Steffen Durinck > > > Dipl.-Ing. Johannes Rainer wrote: > >> hello, >> i wanted to know if there are any possibilities to call R functions >> from a Java >> application, other than the omegahat SJava package (as i am not able >> to install >> this package). >> thanks in advance >> >> _______________________________________________ >> Bioconductor mailing list >> Bioconductor@stat.math.ethz.ch >> https://stat.ethz.ch/mailman/listinfo/bioconductor >> >> > >
ADD REPLY
0
Entering edit mode
To be able to use Rserve, you should install R as a shared library. The Rserve webpage says: "Every connection has a separate workspace and working directory" So I guess you should be okay Cheers, Steffen Dipl.-Ing. Johannes Rainer wrote: > yes, i will try that. i have it already downloaded, but have problems > installing > it. as i understand, the Rserve is some kind of "application server", > that > creates a new R instance when the Rconnection is called, and keeps that R > workspace available as long as the connection is open, but what with > more that > one connection? i hope that the objects in the R workspace will not be > shared > across different connections. > thanks for the help > > Quoting Steffen Durinck <sdurinck@ebi.ac.uk>: > >> Hi Johannes, >> >> you could try the Rserve package from: >> >> http://www.rosuda.org/Rserve/ >> >> best, >> Steffen Durinck >> >> >> Dipl.-Ing. Johannes Rainer wrote: >> >>> hello, >>> i wanted to know if there are any possibilities to call R functions >>> from a Java >>> application, other than the omegahat SJava package (as i am not able >>> to install >>> this package). >>> thanks in advance >>> >>> _______________________________________________ >>> Bioconductor mailing list >>> Bioconductor@stat.math.ethz.ch >>> https://stat.ethz.ch/mailman/listinfo/bioconductor >>> >>> >> >> > > > >
ADD REPLY
0
Entering edit mode
great big thanks! now everything works (or let's say i was able to install the Rserve lib). i had to rebuild my R (version 2.0) by ./configure --enable-R-shlib and then proceeding with the normal build. another question... how can i stop the Rserve daemon (R CMD Rserve stop does not work...) thanks, jo Quoting Steffen Durinck <sdurinck@ebi.ac.uk>: > To be able to use Rserve, you should install R as a shared library. > The Rserve webpage says: > > "Every connection has a separate workspace and working directory" > > So I guess you should be okay > > Cheers, > Steffen > > Dipl.-Ing. Johannes Rainer wrote: > >> yes, i will try that. i have it already downloaded, but have >> problems installing >> it. as i understand, the Rserve is some kind of "application server", that >> creates a new R instance when the Rconnection is called, and keeps that R >> workspace available as long as the connection is open, but what with >> more that >> one connection? i hope that the objects in the R workspace will not >> be shared >> across different connections. >> thanks for the help >> >> Quoting Steffen Durinck <sdurinck@ebi.ac.uk>: >> >>> Hi Johannes, >>> >>> you could try the Rserve package from: >>> >>> http://www.rosuda.org/Rserve/ >>> >>> best, >>> Steffen Durinck >>> >>> >>> Dipl.-Ing. Johannes Rainer wrote: >>> >>>> hello, >>>> i wanted to know if there are any possibilities to call R >>>> functions from a Java >>>> application, other than the omegahat SJava package (as i am not >>>> able to install >>>> this package). >>>> thanks in advance >>>> >>>> _______________________________________________ >>>> Bioconductor mailing list >>>> Bioconductor@stat.math.ethz.ch >>>> https://stat.ethz.ch/mailman/listinfo/bioconductor >>>> >>>> >>> >>> >> >> >> >> > >
ADD REPLY

Login before adding your answer.

Traffic: 1262 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6