isPythonInitialized {RSPython} | R Documentation |
This function tests whether the Python interpreter is in an initialized state and optionally initializes it if it is not (using default settings).
isPythonInitialized(init=F)
init |
a logical value indicating whether to perform the default initialization if the Python interpreter is not already initialized. |
This checks the internal state of the Python library and queries if the
interpreter is already initialized. If not and init
is TRUE
,
the function .PythonInit
is called with no arguments.
A logical value indicating what the current status of the Python interpreter
is. If init
is FALSE
, this is the state before the call.
Otherwise, the interpreter should have been started, except if an error occurs.
Duncan Temple Lang
http://www.omegahat.org/RSPython, http://www.python.org
isPythonInitialized(init) if(isPythonInitialized())