isNativeNull: Test whether an external pointer has the C-level NULL value

isNativeNullR Documentation

Test whether an external pointer has the C-level NULL value

Description

This function allows us to determine from R whether the contents of an external pointer are NULL. See also isNilPointer. (Basically a repeat of this taken from another package.)

Usage

isNativeNull(x, andNULL = TRUE)

Arguments

x

the external pointer object to be tested

andNULL

if x is NULL in R and andNULL is TRUE, the function returns TRUE immediately. So this is only to handle the case where x is the R NULL value.

Value

A logical scalar value.

Author(s)

Duncan Temple Lang


omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.