RPython {XRPython} | R Documentation |
An Evaluator for the Python Interface.
Description
Returns an evaluator for the Python interface. Starts one on the first call, or if arguments are provided;
providing argument .makeNew = TRUE
will force a new evaluator. Otherwise, the current evaluator is
returned.
Usage
RPython(...)
Arguments
... |
arguments to control whether a new evaluator is started. Normally omitted. |
Details
See PythonInterface
for details of the evaluator.
Examples
if(okPython(TRUE)) {
ev <- RPython()
xx <- ev$Eval("[1, %s, 5]", pi)
xx
xx$append(4.5)
ev$Command("print %s", xx)
}
[Package XRPython version 0.8 Index]