R/silencio.R

Defines functions silencio

Documented in silencio

#' Keep silent by suppressing warnings and messages
#' 
#' The function is used to keep the command silent by suppressing warnings and
#' messages
#' 
#' 
#' @param \dots Any function call
#' @return The same as the function call
#' @author Jitao David Zhang <jitao_david.zhang@@roche.com>
#' @seealso \code{\link{suppressWarnings}}, \code{\link{suppressMessages}}
#' @examples
#' 
#' wsqrt <- function(x) {warning("Beep");message("Calculating square");return(x^2)}
#' silencio(wsqrt(3))
#' 
#' @export silencio
silencio <- function(...) suppressWarnings(suppressMessages(...))

Try the ribiosUtils package in your browser

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

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.