Skip to contents

There are three types (typeof()) of functions in R: "closure" (standard functions), or "builtin"/"special" (primitive, special functions). See rlang::is_function() for more details on their difference.

Usage

is_function(x)

is_closure(x)

is_primitive(x)

is_primitive_eager(x)

is_primitive_lazy(x)

Arguments

x

[any] An object to test.

Value

[TRUE | FALSE] The scalar result of the test.