tests/testthat/_snaps/call_user_fun.md

Test 1: Error is issued to function call if function errors

Code
  call_user_fun(compute_bmi(height = 172, weight = "hallo"))
Condition
  Error in `call_user_fun()`:
  ! Calling `compute_bmi(height = 172, weight = "hallo")` caused the following error:
  Argument `weight` must be a numeric vector, but it is a string.


Try the admiral package in your browser

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

admiral documentation built on June 22, 2024, 9:06 a.m.