Code
check_type(x_var, is.character)
Condition
Error:
! `x_var` must be 'character', not 'integer'.
Code
check_type(x_var, is.character, "symbolic")
Condition
Error:
! `x_var` must be 'symbolic', not 'integer'.
Code
check_type(x_df, is.logical)
Condition
Error:
! `x_df` must be 'logical', not 'data.frame'.
x
Code
check_type(input, is.numeric, x_name = "aaa")
Condition
Error:
! `aaa` must be 'numeric', not 'character'.
predicate
Code
check_type(1, is_geq, min_val = 2)
Condition
Error:
! `1` must be 'geq', not 'double'.
predicate
Code
check_type("a", ~ is.numeric(.))
Condition
Error:
! `"a"` must be '~is.numeric(.)', not 'character'.
Code
hypothesize(c(1, 2, 3), null = "point")
Condition
Error in `hypothesize()`:
! x must be a data.frame or tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.