catchAll: Catch Values, Warnings and Errors

View source: R/catchAll.R

catchAllR Documentation

Catch Values, Warnings and Errors

Description

The function separates the output from another function, its warning and errors, without printing them in the console.

Usage

catchAll(fun)

Arguments

fun

a function.

Details

The function was taken from the following stackoverflow question: https://stackoverflow.com/questions/4948361/how-do-i-save-warnings-and-errors-as-output-from-a-function/4952908#4952908

Value

a list with the output of the function in the first element, the warnings in the second and the errors in the third.


LimaRAF/plantR documentation built on Jan. 1, 2023, 10:18 a.m.