assertthat icon indicating copy to clipboard operation
assertthat copied to clipboard

Feature request: quiet argument for assert_that()

Open HedvigS opened this issue 4 years ago • 1 comments

I like assert_that(), wonderful function. Luckily I live in a world where all my code now successfully clears all the assert_that()s we have in there. That means I get a bunch of [1] TRUE back, which while comforting is a bit unncessary.

Can assert_that() get an argument like verbose or quiet? I'm very happy that it makes a noise if something goes wrong, but when it goes right I actually would prefer if it was possible to make it quiet. The default can of course be quiet = F, I'd just like the option.

HedvigS avatar Dec 10 '21 12:12 HedvigS

I can do

x <- assert_that(1 ==1, msg = "WOOP WOOP ERROR")

in the meantime.

HedvigS avatar Dec 10 '21 12:12 HedvigS