1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{py_is_null_xptr}
\alias{py_is_null_xptr}
\alias{py_validate_xptr}
\title{Check if a Python object is a null externalptr}
\usage{
py_is_null_xptr(x)
py_validate_xptr(x)
}
\arguments{
\item{x}{Python object}
}
\value{
Logical indicating whether the object is a null externalptr
}
\description{
Check if a Python object is a null externalptr
}
\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 \code{py_validate} function is a convenience function which calls
\code{py_is_null_xptr} and throws an error in the case that the xptr
is \code{NULL}.
}
|