R/helper_silent.R

Defines functions try_and_be_silent be_silent

# SILENT FUNCTIONS

# No Warnings and Messages -----------------------------------------------------
be_silent <- function(obj) {
  suppressMessages(suppressWarnings(obj))
}
# ------------------------------------------------------------------------------


# Try Without Warnings and Messages --------------------------------------------
try_and_be_silent <- function(obj) {
  suppressMessages(suppressWarnings(try(obj, silent = TRUE)))
}
# ------------------------------------------------------------------------------

Try the gasmodel package in your browser

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

gasmodel documentation built on Aug. 30, 2023, 1:09 a.m.