tryCatch.ep: TryCatch function to run subroutines with ease and...

View source: R/init_log.R

tryCatch.epR Documentation

TryCatch function to run subroutines with ease and standardized output.

Description

This tryCatch wrapper prints errors and warnings alongside information describing the process being executed. If code runs succesfully will print COMPLETE. These errors/warnings are ideally passed to a log file that documents sequential steps in a pipeline.

Usage

tryCatch.ep(code, describe_text = NULL)

Arguments

code

Chunk of code for tryCatch to evaluate. As in the TC documentation, multiple lines of code should be contained within curly brackets[].

describe_text

String containing standardized information about the significance of the code being run. This will print as COMPLETE for successful execution and ERROR and WARNING is something undesirable happens, while allowing code execution to continue below.


PennStateDEPENdLab/experiment.pipeline documentation built on April 14, 2024, 9:37 p.m.