quietly_run {vvshiny}R Documentation

Quietly run a function

Description

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

Usage

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")

[Package vvshiny version 0.1.1 Index]