assert0: Assertion with NULL allowed

Description Usage Arguments

View source: R/utilities.R

Description

assert0 allows NULL besides other assertion conditions.

Usage

1
assert0(x, fun, ..., .var.name = NULL)

Arguments

x

argument to check

fun

a function from the checkmate package (or similar)

...

arguments to fun

.var.name

name for x. See assert


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.