Package: result 0.1.0

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.

Authors:Soumya Ray [aut, cre, cph]

result_0.1.0.tar.gz
result_0.1.0.zip(r-4.5)result_0.1.0.zip(r-4.4)result_0.1.0.zip(r-4.3)
result_0.1.0.tgz(r-4.4-any)result_0.1.0.tgz(r-4.3-any)
result_0.1.0.tar.gz(r-4.5-noble)result_0.1.0.tar.gz(r-4.4-noble)
result_0.1.0.tgz(r-4.4-emscripten)result_0.1.0.tgz(r-4.3-emscripten)
result.pdf |result.html
result/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/soumyaray/result/issues

On CRAN:

11 exports 4 stars 1.10 score 0 dependencies 660 scripts 149 downloads

Last updated 10 months agofrom:6cb3b93845. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-winOKSep 17 2024
R-4.5-linuxOKSep 17 2024
R-4.4-winOKSep 17 2024
R-4.4-macOKSep 17 2024
R-4.3-winOKSep 17 2024
R-4.3-macOKSep 17 2024

Exports:as_resultbindfailureis_failureis_resultis_successresultstatussuccessthen_tryvalue

Dependencies: