The function is used to keep the command silent by suppressing warnings and messages

silencio(...)

Arguments

...

Any function call

Value

The same as the function call

Author

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples


wsqrt <- function(x) {warning("Beep");message("Calculating square");return(x^2)}
silencio(wsqrt(3))
#> [1] 9