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
rlang has an excellent set of check_XXX functions with tailored error messages. It would be great if this were available (and maintained) for public use -- in my mind, this would supersede assertthat, which has not been updated in over 4 years (or vec_assert which is lifecycle: questioning).
Alternatively, these could be exported using a single function (e.g. rlang::check) which takes one of the already exported rlang::is_ functions and generates a good error message. e.g. rlang::check(x, rlang::is_string, allow_null = FALSE, allow_na = TRUE)
rlang
has an excellent set ofcheck_XXX
functions with tailored error messages. It would be great if this were available (and maintained) for public use -- in my mind, this would supersedeassertthat
, which has not been updated in over 4 years (orvec_assert
which is lifecycle: questioning).Alternatively, these could be exported using a single function (e.g.
rlang::check
) which takes one of the already exportedrlang::is_
functions and generates a good error message. e.g.rlang::check(x, rlang::is_string, allow_null = FALSE, allow_na = TRUE)
Related to discussion in #1111
The text was updated successfully, but these errors were encountered: