Skip to contents

Is object non-null, non-empty, non-NA, and not a try-error?

Usage

is_legit(x, is.null = TRUE, is_empty = TRUE, is.na = TRUE, not_error = TRUE)

Arguments

x

(object) to check for legitimacy

is.null

lgl Check for non-null

is_empty

lgl Check for non-empty

is.na

lgl Check for non-NA

not_error

lgl Check for non-error

Value

(logical)

See also

Other conditionals: is_error(), is_project(), larger(), most(), same(), zchar()