Description Usage Arguments Details Value Note Examples
The function pyGet0 gets Python objects by name.
1 | pyGet0(key)
|
key |
a string specifying the name of a Python object. |
Primitive data types like bool, int, long, float, str, bytes and unicode are returned as R objects. Python tuples, lists, dictionaries and other Python objects are returned as virtual Python objects.
Returns the specified Python object converted into an R object if possible, else a virtual Python object.
pyGet0 never creates a new Python object.
1 2 3 4 5 6 7 8 | if ( pyIsConnected() ){
pyExec("import os")
os <- pyGet0("os")
os$getcwd()
os$sep
os$sep <- "Hello Python!"
pyExecp("os.sep")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.