Type checks - Functions
is_function.RdThere 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.
rlang::is_function()tests for any function type.rlang::is_closure()tests for closures.rlang::is_primitive()tests for"builtin"or"special".rlang::is_primitive_eager()tests for"builtin".rlang::is_primitive_lazy()tests for"special".