There is a package called SJava provided by www.omegahat.org Follow the examples in the documentation. You can even create an interactive session where you keep your R objects alive. I would like to use the opportunity to thank the omegahat developers for the great package and to ask them, whether it is possibles to create more than one R session from one Java method and keep their Global Environments separate? Krassi -----Original Message----- From: Evgueni Spodarev [mailto:spodarev at mathematik.uni-ulm.de] Sent: Wednesday, July 03, 2002 16:11 To: R-help at stat.math.ethz.ch Subject: [R] R to Java Dear Sirs, I should be grateful to you if you could tell me whether one can port R into Java. Namely, is it possible to call the methods of R from Java? Do there exist standard interfaces for that? Best regards, Dr. E. Spodarev Universit?t Ulm Abteilung Stochastik 89069 Ulm Germany Tel. (+49) (0)731 5023589 Fax: (+49) (0)731 5023975 http://www.mathematik.uni-ulm.de/stochastik/personal/spodarev/spodarev.html -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ ********************************************************************** This communication is confidential and is intended only for the person to whom it is addressed. If you are not that person you are not permitted to make use of the information and you are requested to notify <mailto:LONIB.Postmaster at commerzbankib.com> immediately that you have received it and then destroy the copy in your possession. Commerzbank AG is regulated by the FSA for the conduct of investment business in the UK. ********************************************************************** -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Vanguelov, Krassimir wrote:> ..... > I would like to use the opportunity to thank the omegahat developers for the > great package and to ask them, whether it is possibles to create more than > one R session from one Java method and keep their Global Environments > separate? >Thanks. Unfortunately, it is not possible to have two separate R sessions or interpreters running within the same process. One can create multiple instances of the Java class that represents the R evaluator, but each of these Java objects refer to the same R interpreter and its state. The issue is with the global variables that R uses to implement the interpreter. We are gradually moving towards having multiple R interpreters and then this will allow exactly what you want, and also allow R to work more naturally when embedded in a server context such as in Postgres, Apache, CORBA server, etc. Hopefully this will happen by the end of the year. Duncan -- _______________________________________________________________ Duncan Temple Lang duncan at research.bell-labs.com Bell Labs, Lucent Technologies office: (908)582-3217 700 Mountain Avenue, Room 2C-259 fax: (908)582-3340 Murray Hill, NJ 07974-2070 http://cm.bell-labs.com/stat/duncan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._