Learn R Programming

tryCatchLog (version 1.3.3)

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

2,383

Version

1.3.3

License

GPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

J<c3><bc>rgen Altfeld

Last Published

December 4th, 2025

Functions in tryCatchLog (1.3.3)

limitedLabelsCompact

Convert a call stack into a list of printable strings
platform.NewLine

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

Try an expression with condition logging and error handling
get.pretty.option.value

gets the current value of an option as key/value string
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
determine.platform.NewLine

Determines the operating system specific new line character(s)
build.log.output

Creates a single string suited as logging output
is.windows

Determines if R is running on a Windows operating system
build.log.entry

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

Checks if a package is installed and can be loaded
get.pretty.tryCatchLog.options

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

Check if a new log entry would be a duplicate of on an already existing log entry
log2console

Prints a time-stamped log message to the console incl. the severity level
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
tryLog

Try an expression with condition logging and error recovery
set.logging.package

Enables one of the supported logging package used by tryCatchLog to write log output
reset.last.tryCatchLog.result

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