internal-is: Generic introspector

Description Usage Arguments Value

Description

Check that x is of a type given by a callback function. Optionally, enforce a specific length and accept or reject NA values.

Usage

1
.is(x, isCb, targetLength = NULL, acceptNA = TRUE)

Arguments

x

[any] Object to be tested.

isCb

[function] Callback function. Example: is.logical(). This is an internal parameter not visible by users.

acceptNA

[logical(1)] Can x contain NA values?

targetlength

[NULL | integer(1) | double(1)] Desired length of x. No length is enforced if this parameter is NULL.

Value

A logical(1).


jeanmathieupotvin/nanocli documentation built on Feb. 2, 2022, 11:30 p.m.