py.init: Initialize Python interpreter

Description Usage Arguments Details Value Author(s)

Description

py.init starts and intitializes the Python interpreter embedded in R.

Usage

1
py.init(home = NULL, program = NULL)

Arguments

home

optional, string specifying the Python home. If not specified, Python typically uses PYTONHOME environment variable - see Python docuemntation for details.

program

optional, string specifying the name of the executable that Python should consider using in cases where it needs to start an external python interpreter.

Details

This function must be called before using any other Python interface functions. Most function will called implicitly py.init() with no arguments and a warning if the interpreter has not been initialized.

Value

TRUE when successful, FALSE if the interpreter is has been already initialized before.

Author(s)

Simon Urbanek


s-u/rpython documentation built on May 28, 2019, 10:48 a.m.