suppressAll: Suppress all types of diagnostic messages, error messages,...

Description Usage Arguments Examples

View source: R/suppressAll.R

Description

Simply wraps the given expression in tryCatch, invisible, capture.output, suppressMessages, suppressWarnings, and suppressPackageStartupMessages to suppress any possible console output.

Usage

1

Arguments

expr

Expression to be evaluated.

Examples

1
2
3
4
5
6
7
8
suppressAll({
  stop("Some error")
  print("Some print")
  message("Some message")
  warning("Some warning")
  some_variable <- "test"
  return(some_variable)
})

KasperSkytte/ksatools documentation built on April 7, 2021, 4:26 p.m.