Code
(expect_error(iv_locate_between(1, iv("a", "b"))))
Output
<error/vctrs_error_ptype2>
Error in `iv_locate_between()`:
! Can't combine `needles` <double> and `iv_start(haystack)` <character>.
Code
(expect_error(iv_locate_between(NA, iv(1, 2), missing = "error")))
Output
<error/vctrs_error_matches_incomplete>
Error in `iv_locate_between()`:
! `needles` can't contain missing values.
x Location 1 contains missing values.
Code
(expect_error(iv_count_between(NA, iv(1, 2), missing = "error")))
Output
<error/vctrs_error_matches_incomplete>
Error in `iv_count_between()`:
! `needles` can't contain missing values.
x Location 1 contains missing values.
Code
(expect_error(iv_locate_between(x, y, relationship = "many-to-one")))
Output
<error/vctrs_error_matches_relationship_many_to_one>
Error in `iv_locate_between()`:
! Each value of `needles` can match at most 1 value from `haystack`.
x Location 1 of `needles` matches multiple values.
Code
(expect_error(iv_locate_includes(iv("a", "b"), 1)))
Output
<error/vctrs_error_ptype2>
Error in `iv_locate_includes()`:
! Can't combine `haystack` <double> and `iv_start(needles)` <character>.
Code
(expect_error(iv_locate_includes(iv(NA, NA), 1, missing = "error")))
Output
<error/vctrs_error_matches_incomplete>
Error in `iv_locate_includes()`:
! `needles` can't contain missing values.
x Location 1 contains missing values.
Code
(expect_error(iv_count_includes(iv(NA, NA), 2, missing = "error")))
Output
<error/vctrs_error_matches_incomplete>
Error in `iv_count_includes()`:
! `needles` can't contain missing values.
x Location 1 contains missing values.
Code
(expect_error(iv_locate_includes(x, y, relationship = "one-to-many")))
Output
<error/vctrs_error_matches_relationship_one_to_many>
Error in `iv_locate_includes()`:
! Each value of `haystack` can match at most 1 value from `needles`.
x Location 1 of `haystack` matches multiple values.
Code
(expect_error(iv_count_between(3, iv(1, 2), no_match = "error")))
Output
<error/vctrs_error_matches_nothing>
Error in `iv_count_between()`:
! Each value of `needles` must have a match in `haystack`.
x Location 1 of `needles` does not have a match.
Code
(expect_error(iv_count_includes(iv(1, 2), 3, no_match = "error")))
Output
<error/vctrs_error_matches_nothing>
Error in `iv_count_includes()`:
! Each value of `needles` must have a match in `haystack`.
x Location 1 of `needles` does not have a match.
Code
(expect_error(iv_between(1, iv("a", "b"))))
Output
<error/vctrs_error_ptype2>
Error in `iv_between()`:
! Can't combine `needles` <double> and `iv_start(haystack)` <character>.
Code
(expect_error(iv_between(NA, iv(1, 2), missing = "error")))
Output
<error/vctrs_error_matches_incomplete>
Error in `iv_between()`:
! `needles` can't contain missing values.
x Location 1 contains missing values.
Code
(expect_error(iv_includes(iv("a", "b"), 1)))
Output
<error/vctrs_error_ptype2>
Error in `iv_includes()`:
! Can't combine `haystack` <double> and `iv_start(needles)` <character>.
Code
(expect_error(iv_includes(iv(NA, NA), 2, missing = "error")))
Output
<error/vctrs_error_matches_incomplete>
Error in `iv_includes()`:
! `needles` can't contain missing values.
x Location 1 contains missing values.
Code
(expect_error(iv_pairwise_between(1, iv("a", "b"))))
Output
<error/vctrs_error_ptype2>
Error in `iv_pairwise_between()`:
! Can't combine `x` <double> and `iv_start(y)` <character>.
Code
(expect_error(iv_pairwise_between(1:3, iv(1:2, 2:3))))
Output
<error/vctrs_error_incompatible_size>
Error in `iv_pairwise_between()`:
! Can't recycle `x` (size 3) to match `iv_start(y)` (size 2).
Code
(expect_error(iv_pairwise_includes(iv("a", "b"), 1)))
Output
<error/vctrs_error_ptype2>
Error in `iv_pairwise_includes()`:
! Can't combine `y` <double> and `iv_start(x)` <character>.
Code
(expect_error(iv_pairwise_includes(iv(1:2, 2:3), 1:3)))
Output
<error/vctrs_error_incompatible_size>
Error in `iv_pairwise_includes()`:
! Can't recycle `y` (size 3) to match `iv_start(x)` (size 2).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.