tests/testthat/_snaps/parse.md

parse_expr() throws meaningful error messages

Code
  err(parse_expr(""))
Output
  <error/rlang_error>
  Error in `parse_expr()`:
  ! `x` must contain exactly 1 expression, not 0.
Code
  err(parse_expr("foo; bar"))
Output
  <error/rlang_error>
  Error in `parse_expr()`:
  ! `x` must contain exactly 1 expression, not 2.


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.