Package: tryCatchLog 1.3.2

Juergen Altfeld

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

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).

Authors:Juergen Altfeld [aut, cre, cph], Charles Epaillard [ctb], Brandon Bertelsen [ctb], Valerian Wrobel [ctb], Duccio Aiazzi [ctb]

tryCatchLog_1.3.2.tar.gz
tryCatchLog_1.3.2.zip(r-4.5)tryCatchLog_1.3.2.zip(r-4.4)tryCatchLog_1.3.2.zip(r-4.3)
tryCatchLog_1.3.2.tgz(r-4.4-any)tryCatchLog_1.3.2.tgz(r-4.3-any)
tryCatchLog_1.3.2.tar.gz(r-4.5-noble)tryCatchLog_1.3.2.tar.gz(r-4.4-noble)
tryCatchLog_1.3.2.tgz(r-4.4-emscripten)tryCatchLog_1.3.2.tgz(r-4.3-emscripten)
tryCatchLog.pdf |tryCatchLog.html
tryCatchLog/json (API)
NEWS

# Install 'tryCatchLog' in R:
install.packages('tryCatchLog', repos = c('https://aryoda.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/aryoda/trycatchlog/issues

On CRAN:

8.69 score 73 stars 9 packages 111 scripts 1.5k downloads 11 exports 0 dependencies

Last updated 2 years agofrom:7943c0ec1e. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winNOTEOct 31 2024
R-4.5-linuxNOTEOct 31 2024
R-4.4-winNOTEOct 31 2024
R-4.4-macNOTEOct 31 2024
R-4.3-winNOTEOct 31 2024
R-4.3-macNOTEOct 31 2024

Exports:build.log.outputget.pretty.call.stackget.pretty.tryCatchLog.optionsis.windowslast.tryCatchLog.resultlimitedLabelsCompactplatform.NewLineset.logging.functionsset.logging.packagetryCatchLogtryLog

Dependencies:

Error handling in R with tryCatchLog: Catching, logging, post-mortem analysis

Rendered fromtryCatchLog-intro.Rmdusingknitr::rmarkdownon Oct 31 2024.

Last update: 2018-06-01
Started: 2018-04-25

Readme and manuals

Help Manual

Help pageTopics
Appends a new log entry to the stored logging output of the last call to 'tryCatchLog' or 'tryLog'append.to.last.tryCatchLog.result
Creates a log entry as a single 'data.frame' row containing all relevant logging information in columnsbuild.log.entry
Creates a single string suited as logging outputbuild.log.output
Determines the operating system specific new line character(s)determine.platform.NewLine
Pretty formatted call stack enriched with the source file names and row numbersget.pretty.call.stack
gets the current value of an option as key/value stringget.pretty.option.value
Gets the current option values of all options supported by the `tryCatchLog` packageget.pretty.tryCatchLog.options
Check if a new log entry would be a duplicate of on an already existing log entryis.duplicated.log.entry
Checks if a package is installed and can be loadedis.package.available
Determines if R is running on a Windows operating systemis.windows
Gets the logging result of the last call to 'tryCatchLog' or 'tryLog'last.tryCatchLog.result
Convert a call stack into a list of printable stringslimitedLabelsCompact
Prints a time-stamped log message to the console incl. the severity levellog2console
Gets the operating system specific new line character(s)platform.NewLine
Resets the stored logging output of the last call to 'tryCatchLog' or 'tryLog' to an empty listreset.last.tryCatchLog.result
Sets the logging functions that shall be used by 'tryCatchLog' for the different severity levelsset.logging.functions
Enables one of the supported logging package used by tryCatchLog to write log outputset.logging.package
Try an expression with condition logging and error handlingtryCatchLog
Try an expression with condition logging and error recoverytryLog