Coercion to an argument type

as_argument(x)

Arguments

x

value to be coerced

Value

An argument list object

Examples

a <- as_argument("numeric") b <- as_argument(~ is.logical(.) && .) c <- as_argument(list(1, 2, 3, TRUE, FALSE))