Nothing
Code
.check_na(c(1, NA), allow_na = FALSE)
Condition
Error:
! `c(1, NA)` must not contain NA values.
* NA locations: 2
Code
.check_size(1:5, 6, 10)
Condition
Error:
! `1:5` must have size >= 6.
x 5 is too small.
Code
.check_size(1:5, 1, 4)
Condition
Error:
! `1:5` must have size <= 4.
x 5 is too big.
Code
.check_scalar(1:2)
Condition
Error:
! `1:2` must be a single <integer>.
x `1:2` has 2 values.
Code
.check_scalar(NULL, allow_null = FALSE)
Condition
Error:
! `NULL` must be a single <non-NULL>.
x `NULL` has no values.
Code
.check_scalar(character(), allow_zero_length = FALSE)
Condition
Error:
! `character()` must be a single <character (non-empty)>.
x `character()` has no values.
Code
.check_x_no_more_than_y(2, 1)
Condition
Error:
! `2` can't be larger than `1`.
* `2` = 2
* `1` = 1
Code
.check_cast_failures(failures = failures, x_class = "character", to = logical(),
due_to = "incompatible values", x_arg = "test_arg", call = rlang::current_env())
Condition
Error:
! `test_arg` <character> must be coercible to <logical>
x Can't convert some values due to incompatible values.
* Locations: 2 and 4
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.