tests/testthat/_snaps/conditions.md

log_warning causes warnings to be emitted

Code
  ev <- evaluate("f()", log_warning = TRUE)
Condition
  Warning in `f()`:
  Hi!

all three starts of stop_on_error work as expected

Code
  evaluate("stop(\"1\")\n2", stop_on_error = 2L)
Condition
  Error:
  ! 1


Try the evaluate package in your browser

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

evaluate documentation built on Oct. 10, 2024, 5:06 p.m.