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.

Version: 2024.4.1
Imports: cli, rlang
Suggests: testthat (≥ 3.0.0)
Published: 2024-04-24
DOI: 10.32614/CRAN.package.slap
Author: Romain François [aut, cre], [cph, fnd]
Maintainer: Romain François <romain at>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README NEWS
CRAN checks: slap results


Reference manual: slap.pdf


Package source: slap_2024.4.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): slap_2024.4.1.tgz, r-oldrel (arm64): slap_2024.4.1.tgz, r-release (x86_64): slap_2024.4.1.tgz, r-oldrel (x86_64): slap_2024.4.1.tgz


Please use the canonical form to link to this page.