tests/testthat/_snaps/utils.md

fail_on_missing_package

Code
  fail_on_missing_package("logger", "9.9.9", call = quote(f()))
Condition
  Error:
  ! Please install min. 9.9.9 version of logger to use f
Code
  fail_on_missing_package("an.R.package-that-doesNotExists", call = quote(f()))
Condition
  Error:
  ! Please install the 'an.R.package-that-doesNotExists' package to use f

validate_log_level

Code
  validate_log_level("FOOBAR")
Condition
  Error in `validate_log_level()`:
  ! Invalid log level


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.