py_is_null_xptr: Check if a Python object is a null externalptr

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Check if a Python object is a null externalptr

Usage

1
2
3

Arguments

x

Python object

Details

When Python objects are serialized within a persisted R environment (e.g. .RData file) they are deserialized into null externalptr objects (since the Python session they were originally connected to no longer exists). This function allows you to safely check whether whether a Python object is a null externalptr.

The py_validate function is a convenience function which calls py_is_null_xptr and throws an error in the case that the xptr is NULL.

Value

Logical indicating whether the object is a null externalptr


Mormukut11/R-interface-to-Python documentation built on May 21, 2019, 9:36 a.m.