[R] R to Java - more than one R sesion?

Duncan Temple Lang duncan at research.bell-labs.com
Thu Jul 4 17:26:11 CEST 2002


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list