tests/testthat/_snaps/standalone-errors.md

can pass frame as error call in new_error()

Code
  (expect_error(f()))
Output
  <rlib_error_3_0/rlib_error/error>
  Error in `f()`:
  ! my message
Code
  (expect_error(g()))
Output
  <rlib_error_3_0/rlib_error/error>
  Error in `g()`:
  ! my message

can pass frame as error call in throw()

Code
  (expect_error(f()))
Output
  <rlib_error_3_0/rlib_error/error>
  Error in `f()`:
  ! my message
Code
  (expect_error(g()))
Output
  <rlib_error_3_0/rlib_error/error>
  Error in `g()`:
  ! my message


Try the processx package in your browser

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

processx documentation built on May 29, 2024, 5:53 a.m.