Package: chronicler 0.3.0

chronicler: Add Logging to Functions

Decorate functions to make them return enhanced output. The enhanced output consists in an object of type 'chronicle' containing the result of the function applied to its arguments, as well as a log detailing when the function was run, what were its inputs, what were the errors (if the function failed to run) and other useful information. Tools to handle decorated functions are included, such as a forward pipe operator that makes chaining decorated functions possible.

Authors:Bruno Rodrigues [aut, cre, cph], Matouš Eibich [ctb]

chronicler_0.3.0.tar.gz
chronicler_0.3.0.zip(r-4.7)chronicler_0.3.0.zip(r-4.6)chronicler_0.3.0.zip(r-4.5)
chronicler_0.3.0.tgz(r-4.6-any)chronicler_0.3.0.tgz(r-4.5-any)
chronicler_0.3.0.tar.gz(r-4.7-any)chronicler_0.3.0.tar.gz(r-4.6-any)
chronicler_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
chronicler/json (API)

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

Bug tracker:https://github.com/b-rodrigues/chronicler/issues

Datasets:
  • avia - Avia Air passenger transport between the main airports of Luxembourg and their main partner airports

On CRAN:

Conda:

7.56 score 55 stars 37 scripts 192 downloads 16 exports 28 dependencies

Last updated from:cdcbfd1a7b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK146
source / vignettesOK192
linux-release-x86_64OK145
macos-release-arm64OK204
macos-oldrel-arm64OK185
windows-develOK101
windows-releaseOK94
windows-oldrelOK98
wasm-releaseOK124

Exports:%>=%as_chroniclebind_recordcheck_diffcheck_gflatten_recordfmap_recordis_chroniclepurelyread_logrecordrecord_ggplotrecord_manyunveilwrite_chronicle_dfzap_log

Dependencies:clicpp11crayondiffobjdplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrmaybepillarpkgconfigR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr

A real world example

Last update: 2025-08-16
Started: 2024-02-14

A non-mathematician's introduction to monads
Introduction | Monadic laws | First law | Second law | Third law | flatmap() for chronicle objects

Last update: 2025-08-14
Started: 2024-02-14

Recording ggplot Objects with chronicler
Introduction | Basic Recording and Inspection | Handling Failures Gracefully | Capturing Errors | Controlling Strictness | Conclusion

Last update: 2025-08-14
Started: 2025-08-14

The Maybe monad

Last update: 2025-08-14
Started: 2024-02-14