tests/testthat/_snaps/attr.md

inputs must be valid

Code
  (expect_error(set_names(environment())))
Output
  <error/rlang_error>
  Error in `set_names()`:
  ! `x` must be a vector
Code
  (expect_error(set_names(1:10, letters[1:4])))
Output
  <error/rlang_error>
  Error in `set_names()`:
  ! The size of `nm` (4) must be compatible with the size of `x` (10).


Try the rlang package in your browser

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

rlang documentation built on Nov. 4, 2023, 9:06 a.m.