Description Usage Arguments Details Examples
The function pyObject creates a virtual Python object of type PythonInR_Object.
1 2 3 | pyObject(key, regFinalizer = TRUE)
is.PythonInR_Object(x)
|
key |
a character string giving the name of the Python object. |
regFinalizer |
a logical indicating if a finalizer should be be registered, the default value is TRUE. |
x |
an R object. |
Every PythonInR_Object has the following members:
.name the variable name used in Python.
.objname the name of the Python object
(obtained by x.__name__
) or NULL.
.type the type of the Python object
(obtained by type(x).__name__)
.
.del a function to delete the Python object.
print for more information see R6 classes.
initialize for more information see R6 classes.
The other members of PythonInR_Object's are generated dynamically based on the provided Python object. The R function ls can be used to view the members of a PythonInR_Object object.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.