You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I investigated a bit further and saw that it is part of a TODO item in the C core.
doubler_arg_as_double(r_obj*x, constchar*arg) {
// TODO: Coercion of int and lgl valuesif (!_r_is_double(x, 1, -1)) {
r_abort("`%s` must be a single double value.", arg);
}
returnr_dbl_get(x, 0);
}
But my use case was that
max = length(something)
which is integer, and triggered this unfriendly error.Is there something rlang can do that will not affect performance.
For what it's worth, I think it would still be valid to accept integer for
check_number_decimal()
too.The text was updated successfully, but these errors were encountered: