stopNull: stopNull

Description Usage Arguments Examples

Description

Check caller's args and stop if there are any NULL, all(NA) or zero-length vector.

Usage

1
stopNull(except = NULL)

Arguments

except

args' name vector that should not to be checked

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
add = function(a, b, c) {
	stopNull()
	a + b + c
}

# add(1, 2, 3)

# add(1, 2, NULL)

add2 = function(a, b, c) {
	stopNull(except = "c")
	a + b
}

# add2(1, 2, NULL)

itsaquestion/NullCheck documentation built on June 17, 2019, 3:15 a.m.