Skip to content

result

0.1.0

Result Type for Safely Handling Operations that can Succeed or Fail

1packages depend
3.9Kdownloads / year
test coverage
0/13checks pass

Overview

About
Maintained by Soumya RayFirst published 2023-11-211 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 53 s · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.59
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
0
Dependencies · direct
Check history
  • NOTE2026-03-10
    3 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

3.9K
CRAN downloads in the past year
Rank #10,765 · ~11/day · ~322/mo
result
Daily download trend is not available in this view yet.
34730 days
1K90 days
3.9K1 year
Compare downloads with other packages →
Also on152 r2u5 autocran

Repository

Repository
6Stars
1Forks
2Open issues
0Open PRs
1Releases

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 436 (60%)Rd 292 (40%)
Code characteristics
Object systems
S35
Cyclomatic complexity
1.0 median / 4 max
Test cases
11 / 0.59 per code line
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

17 10 exported

Complexity

1.4 avg / 4 max

Call network

17 nodes / 12 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Release timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2023-11-21
Total releases
1 / 3 yrs
License
MIT + file LICENSE OSI
Download size
7.8 KB
Installed size
not tracked yet
With dependencies
not tracked yet