Learn R Programming

vvshiny (version 0.1.1)

quietly_run: 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, ...)

Value

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

Arguments

func

The function to be run.

...

Optional further arguments passed to the 'func' function.

Examples

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

Run the code above in your browser using DataLab