Skip to contents

Python initialization

py_init()
Explicitly initialize a Python session

Python’s built-in functions

py_builtins
Access Python's built-in functions

Python class

py_class()
Create a Python class
py_super() py_super_init()
Call Python's super() from R

Python for loop and comprehension

py_for()
Python-style for loops in R
py_comprehension()
Python-Style Comprehension in R
py_is_iterable() py_is_iterator()
Test whether a Python object is iterable or an iterator
py_tuple_unpack()
Unpack a Python tuple (or sequence) into R variables

Automatic conversion

py_convert_on() py_convert_off()
Toggle automatic Python-to-R conversion

Internal

get_state()
Access the internal scrubwren state