powered by
Test if the input is NULL
test_if_null(x)
an error if input (x) is NULL
object
if (FALSE) { # success test_if_null(airquality) #fail my_test <- NULL test_if_null(my_test) }
Run the code above in your browser using DataLab