tests/testthat/_snaps/utils.md

as_flag

Code
  as_flag("boo", FALSE)
Warning <simpleWarning>
  Invalid option value: `boo`, must be TRUE or FALSE
Output
  [1] FALSE
Code
  as_flag("boo", TRUE, "thisthat")
Warning <simpleWarning>
  Invalid `thisthat` option value: `boo`, must be TRUE or FALSE
Output
  [1] TRUE


Try the rcmdcheck package in your browser

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

rcmdcheck documentation built on Sept. 27, 2021, 5:13 p.m.