tests/testthat/_snaps/rank.md

ties is validated

Code
  vec_rank(1, ties = "foo")
Condition
  Error in `vec_rank()`:
  ! `ties` must be one of "min", "max", "sequential", or "dense", not "foo".
Code
  vec_rank(1, ties = 1)
Condition
  Error in `vec_rank()`:
  ! `ties` must be a string or character vector.

incomplete is validated

Code
  vec_rank(1, incomplete = NA)
Condition
  Error in `vec_rank()`:
  ! `incomplete` must be a string or character vector.
Code
  vec_rank(1, incomplete = c(TRUE, FALSE))
Condition
  Error in `vec_rank()`:
  ! `incomplete` must be a string or character vector.
Code
  vec_rank(1, incomplete = "foo")
Condition
  Error in `vec_rank()`:
  ! `incomplete` must be one of "rank" or "na", not "foo".


Try the vctrs package in your browser

Any scripts or data that you put into this service are public.

vctrs documentation built on Oct. 13, 2023, 1:05 a.m.