pyDict ====== The function pyDict creates a virtual Python object of type PythonInR_Dict. If no value is provided a virtual Python dict for an existing Python object is created. If the value is NULL, an empty virtual Python object for an empty dict is created. If the value is a named vector or named list, a new Python object based on the vector or list is created. Usage ----- .. code-block:: R pyDict(key, value, regFinalizer = TRUE) Arguments --------- .. raw:: html
key | a character string giving the name of the Python object. |
value | if a value is provided, a new Python dictionary is created based on the value. Therefore allowed values of value are named lists and names vectors. |
regFinalizer | a logical indicating if a finalizer should be be registered, the default value is TRUE. |