Learn R Programming

tryCatchLog (version 1.3.1)

Advanced 'tryCatch()' and 'try()' Functions

Description

Advanced tryCatch() and try() functions for better error handling (logging, stack trace with source code references and support for post-mortem analysis via dump files).

Copy Link

Version

Install

install.packages('tryCatchLog')

Monthly Downloads

1,237

Version

1.3.1

License

GPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

J<c3><bc>rgen Altfeld

Last Published

October 25th, 2021

Functions in tryCatchLog (1.3.1)

build.log.output

Creates a single string suited as logging output
is.duplicated.log.entry

Check if a new log entry would be a duplicate of on an already existing log entry
is.package.available

Checks if a package is installed and can be loaded
get.pretty.call.stack

Pretty formatted call stack enriched with the source file names and row numbers
append.to.last.tryCatchLog.result

Appends a new log entry to the stored logging output of the last call to tryCatchLog or tryLog
last.tryCatchLog.result

Gets the logging result of the last call to tryCatchLog or tryLog
set.logging.functions

Sets the logging functions that shall be used by tryCatchLog for the different severity levels
reset.last.tryCatchLog.result

Resets the stored logging output of the last call to tryCatchLog or tryLog to an empty list
log2console

Prints a time-stamped log message to the console incl. the severity level
platform.NewLine

Gets the operating system specific new line character(s)
tryLog

Try an expression with condition logging and error recovery
tryCatchLog

Try an expression with condition logging and error handling
determine.platform.NewLine

Determines the operating system specific new line character(s)
limitedLabelsCompact

Convert a call stack into a list of printable strings
get.pretty.option.value

gets the current value of an option as key/value string
is.windows

Determines if R is running on a Windows operating system
get.pretty.tryCatchLog.options

Gets the current option values of all options supported by the `tryCatchLog` package
build.log.entry

Creates a log entry as a single data.frame row containing all relevant logging information in columns