expect_vector() is a thin wrapper around
the results of that function in to the expectations used by testthat. This
means that it used the vctrs of
ptype (prototype) and
details in https://vctrs.r-lib.org/articles/type-size.html
Object to test.
Supports limited unquoting to make it easier to generate readable failures within a function or for loop. See quasi_label for more details.
(Optional) Vector prototype to test against. Should be a size-0 (empty) generalised vector.
(Optional) Size to check for.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.