tests/testthat/_snaps/try.md

%except% logs errors and returns default value

Code
  out <- f()
Output
  except / global / logger / f / f()
  WARN Running '1' as 'FunDoesNotExist(1:10)' failed: 'could not find function "FunDoesNotExist"'


Try the logger package in your browser

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

logger documentation built on Oct. 30, 2024, 9:24 a.m.