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.


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.