Learn R Programming

XRPython (version 0.8)

RPython: 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

Run this code
# NOT RUN {
if(okPython(TRUE)) {
  ev <- RPython()
  xx <- ev$Eval("[1, %s, 5]", pi)
  xx
  xx$append(4.5)
  ev$Command("print %s", xx)
}
# }

Run the code above in your browser using DataLab