python.get_class: Get Python class.

Description Usage Arguments Value Examples

Description

Get Python class.

Usage

1
python.get_class(cls_name, env = parent.frame())

Arguments

cls_name

Name of the Python class.

env

Optional environment, where corresponding R class will be created.

Value

R class corresponding to Python class.

Examples

1
2
3
PyStr <- python.get_class("str")
s <- PyStr("hello, {name}")
s$format(name = "world")

nonsleepr/PyR documentation built on May 23, 2019, 9:32 p.m.