romainfrancois / nothing

A package about nothing
40 stars 11 forks source link

quiet #3

Closed romainfrancois closed 9 years ago

romainfrancois commented 10 years ago

This makes a lot of noise for nothing:

> require(nothing)
Loading required package: nothing
unloading 'methods' package ...
Failed with error:  ‘invalid 'pos' argument’
leeper commented 10 years ago

Wrap it in suppressMessages?

romainfrancois commented 10 years ago

I get:

> suppressMessages( require(nothing) )
Failed with error:  ‘invalid 'pos' argument’

So there still is a problem, but more importantly, it is too much work to have to type suppressMessages for nothing.

daroczig commented 9 years ago

You can also divert the R output to e.g. /dev/null (or wrap in capture.output) to suppress the "Failed with error" msg cat by require for a perfect user experience :)

romainfrancois commented 9 years ago

Would you do a pull request ?

daroczig commented 9 years ago

Sure, I'll be happy to do that in a few days.