Logo Search packages:      
Sourcecode: rjava version File versions  Download package

org::rosuda::JRI::Rengine::Rengine ( String[]  args,
boolean  runMainLoop,
RMainLoopCallbacks  initialCallbacks 
) [inline]

create and start a new instance of R.

Parameters:
args arguments to be passed to R. Please note that R requires the presence of certain arguments (e.g. --save or --no-save or equivalents), so passing an empty list usually doesn't work.
runMainLoop if set to true the the event loop will be started as soon as possible, otherwise no event loop is started. Running loop requires initialCallbacks to be set correspondingly as well.
initialCallbacks an instance implementing the RMainLoopCallbacks interface that provides methods to be called by R

Definition at line 106 of file Rengine.java.

References callback, mainEngine, and Rsync.

                                                                                            {
        super();
        Rsync=new Mutex();
        died=false;
        alive=false;
        runLoop=runMainLoop;
        loopRunning=false;
        this.args=args;
        callback=initialCallbacks;
        mainEngine=this;
      mainRThread=this;
        start();
        while (!alive && !died) yield();
    }


Generated by  Doxygen 1.6.0   Back to index