tests/testthat/_snaps/format_vec.md

check_vector_valid() works correctly

Code
  check_vector_valid(1, "integer")
Condition
  Error:
  ! `x` must be integer vectors, not a number.
Code
  check_vector_valid(TRUE, c("numeric", "integer"))
Condition
  Error:
  ! `x` must be numeric or integer vectors, not `TRUE`.
Code
  check_vector_valid(data.frame(x = 1), c("numeric", "integer"))
Condition
  Error:
  ! `x` must be numeric or integer vectors, not a data frame.


rstudio/gt documentation built on Nov. 2, 2024, 5:53 p.m.