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
Author: Soumya Ray ORCID iD [aut, cre, cph]
Maintainer: Soumya Ray <soumya.ray at gmail.com>
BugReports: https://github.com/soumyaray/result/issues
License: MIT + file LICENSE
URL: https://github.com/soumyaray/result
NeedsCompilation: no
Materials: README NEWS
CRAN checks: result results

Documentation:

Reference manual: result.pdf

Downloads:

Package source: result_0.1.0.tar.gz
Windows binaries: r-devel: result_0.1.0.zip, r-release: result_0.1.0.zip, r-oldrel: result_0.1.0.zip
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

Linking:

Please use the canonical form https://CRAN.R-project.org/package=result to link to this page.