This function is a wrapper that allows a function to be run quietly without the need to create a separate quiet function.

quietly_run(func, ...)

Arguments

func

The function to be run.

...

Optional further arguments passed to the 'func' function.

Value

The list result of the 'func' function with messages, warnings, and output captured.

Examples

warning_func_arugment <- function(info) {
  warning(info)
  return("Complete")
}
result <- quietly_run(warning_func_arugment, "Just checking")