Learn R Programming

nanonext (version 0.9.2)

is_error_value: Error Validators

Description

Validator functions for error value types created by {nanonext}.

Usage

is_error_value(x)

is_nul_byte(x)

Value

Logical value TRUE or FALSE.

Arguments

x

an object.

Details

Is the object an error value inheriting from class 'errorValue'. All non-success integer return values from NNG are classed as such to be distinguishable from integer message values. Includes error values returned after a timeout etc.

Is the object a nul byte.

Examples

Run this code
is_error_value(1L)

is_nul_byte(as.raw(0L))
is_nul_byte(raw(length = 1L))
is_nul_byte(writeBin("", con = raw()))
is_nul_byte(0L)
is_nul_byte(NULL)
is_nul_byte(NA)

Run the code above in your browser using DataLab