RPython: An Evaluator for the Python Interface.

Description Usage Arguments Details Examples

View source: R/pythonInterface.R

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

1

Arguments

...

arguments to control whether a new evaluator is started. Normally omitted.

Details

See PythonInterface for details of the evaluator.

Examples

1
2
3
4
5
6
7
if(okPython(TRUE)) {
  ev <- RPython()
  xx <- ev$Eval("[1, %s, 5]", pi)
  xx
  xx$append(4.5)
  ev$Command("print %s", xx)
}

XRPython documentation built on May 2, 2019, 9:33 a.m.