Description Usage Arguments Value Examples
Get Python class.
1 | python.get_class(cls_name, env = parent.frame())
|
cls_name |
Name of the Python class. |
env |
Optional environment, where corresponding R class will be created. |
R class corresponding to Python class.
1 2 3 | PyStr <- python.get_class("str")
s <- PyStr("hello, {name}")
s$format(name = "world")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.