tests/testthat/_snaps/sym.md

ensym() fails with calls

Code
  err(capture_sym(foo(bar)))
Output
  <error/rlang_error>
  Error in `ensym()`:
  ! Can't convert to a symbol.

must supply strings to sym()

Code
  err(sym(letters))
Output
  <error/rlang_error>
  Error in `sym()`:
  ! Can't convert a character vector to a symbol.
Code
  err(sym(1:2))
Output
  <error/rlang_error>
  Error in `sym()`:
  ! Can't convert an integer vector to a symbol.


tidyverse/rlang documentation built on Oct. 31, 2024, 5:35 p.m.