View source: R/pythonInterface.R
isinstance | R Documentation |
Applies the Python function isinstance()
to object
. NOTE: this function should be used to test inheritance on the Python side,
even if there are proxy classes for everything involved. It is not true (with the present version of the package) that inheritance in Python
corresponds to inheritance in R for the proxy classes.
isinstance(object, type, .ev = RPython())
object |
Any object. The function returns |
type |
A character string corresponding to the Python type (not to the name of a proxy class for the type). A Python error will result
if there is no such type, or if |
.ev |
an XRPython evaluator, by default and usually the current evaluator. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.