result: Result Type for Safely Handling Operations that can Succeed or Fail

Allows wrapping values in success() and failure() types to capture the result of operations, along with any status codes. Risky expressions can be wrapped in as_result() and functions wrapped in result() to catch errors and assign the relevant result types. Monadic functions can be bound together as pipelines or transaction scripts using then_try(), to gracefully handle errors at any step.

Version: 0.1.0
Suggests: testthat (≥ 3.0.0)
Published: 2023-11-21
DOI: 10.32614/CRAN.package.result
Author: Soumya Ray ORCID iD [aut, cre, cph]
Maintainer: Soumya Ray <soumya.ray at>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README NEWS
CRAN checks: result results


Reference manual: result.pdf


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


Please use the canonical form to link to this page.