tests/testthat/_snaps/call.md

call functions type-check their input (#187)

Code
  x <- list(a = 1)
  err(call_modify(x, NULL))
Output
  <error/rlang_error>
  Error in `call_modify()`:
  ! `.call` must be a defused call, not a list.
Code
  err(call_name(x))
Output
  <error/rlang_error>
  Error in `call_name()`:
  ! `call` must be a defused call, not a list.
Code
  err(call_args(x))
Output
  <error/rlang_error>
  Error in `call_args()`:
  ! `call` must be a defused call, not a list.
Code
  err(call_args_names(x))
Output
  <error/rlang_error>
  Error in `call_args_names()`:
  ! `call` must be a defused call, not a list.
Code
  q <- quo(!!x)
  err(call_modify(q, NULL))
Output
  <error/rlang_error>
  Error in `call_modify()`:
  ! `.call` must be a defused call, not a list.
Code
  err(call_name(q))
Output
  <error/rlang_error>
  Error in `call_name()`:
  ! `call` must be a defused call, not a list.
Code
  err(call_args(q))
Output
  <error/rlang_error>
  Error in `call_args()`:
  ! `call` must be a defused call, not a list.
Code
  err(call_args_names(q))
Output
  <error/rlang_error>
  Error in `call_args_names()`:
  ! `call` must be a defused call, not a list.


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.