slap: Simplified Error Handling

Alternative to using withCallingHandlers() in the simple case of catch and rethrow. The `%!%` operator evaluates the expression on its left hand side, and if an error occurs, the right hand side is used to construct a new error that embeds the original error.

Getting started

Package details

AuthorRomain François [aut, cre], tada.science [cph, fnd]
MaintainerRomain François <romain@tada.science>
LicenseMIT + file LICENSE
Version2024.4.1
URL https://github.com/tadascience/slap https://slap.tada.science
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("slap")

Try the slap package in your browser

Any scripts or data that you put into this service are public.

slap documentation built on May 29, 2024, 5:09 a.m.