test_if_null: Test if the input is NULL

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Test if the input is NULL

Usage

1

Arguments

x

object

Value

an error if input (x) is NULL

Examples

1
2
3
4
5
6
7
8
## Not run: 
# success
test_if_null(airquality)
#fail
my_test <- NULL
test_if_null(my_test)

## End(Not run)

naniar documentation built on Feb. 9, 2018, 6:05 a.m.