tests/testthat/_snaps/utils-stop.md

stops() does not return the call as part of the error message

Code
  wrap_stops <- (function() stops("this is an error message."))
  wrap_stops()
Condition
  Error:
  ! this is an error message.

stopf() works

Code
  stopf("this '%s' becomes part of the error message.", "placeholder")
Condition
  Error:
  ! this 'placeholder' becomes part of the error message.


Try the transltr package in your browser

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

transltr documentation built on April 3, 2025, 9:33 p.m.