powered by
as
coerce_to(x, target_class, .xname = get_name_in_parent(x))
x
is
# Numbers can be coerced to characters but not to calls. dont_stop(coerce_to(1:5, c("call", "character")))
Run the code above in your browser using DataLab