Skip to content

maybe

1.1.0Package record

The Maybe Monad

4packages dependsuggested by 2
3.8Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

The maybe type represents the possibility of some value or nothing. It is often used instead of throwing an error or returning `NULL`. The advantage of using a maybe type over `NULL` is that it is both composable and requires the developer to explicitly acknowledge the potential absence of a value, helping to avoid the existence of unexpected behaviour.

Changes in 1.1.0

Features

  • maybe_map3 Evaluate a ternary function on three maybe values
  • and_then2 Evaluate a binary maybe returning function on two maybe values
  • and_then3 Evaluate a ternary maybe returning function on three maybe values

Bug fixes

  • Fixed invisible return of maybe value to print correctly

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.0 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 718 wordsVignettesNoNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsiteYes · pkgdown
Help pages
30 (1 internal)
Examples that run
100%29 run in a plain check
Exported functions with examples
97%
Documented parameters
98%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.8K
CRAN downloads in the past year
Rank #12,927 · ~10/day · ~316/mo
Daily download trend is not available in this view yet.
31130 days
89190 days
3.8K1 year
Compare downloads with other packages →
Also on74 r2u10 autocran707 conda_forge

Repository

49Stars
1Forks
0Open issues
0Open PRs
5Releases
47Commits
1Commit identities
functional-programmingrstatsr
47 commits · Last activity 2023-08-06
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
12
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-19 · 492026-07-07 · 49
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/armcn/maybe on 2026-10-25.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2023-08-07 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing maybe adds 1 package (1 with compiled code, 275 KB of source tarballs). Heaviest: magrittr 275 KB.

Depends (0)
none
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Imports 4
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2022)
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.0Latest
    record
    2023-08-07 · current release · diff ↗ ·
    added 3 exports
    and_then2, and_then3, maybe_map3
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    record
    2022-05-28 · diff ↗ ·
    added 5 exports
    filter_justs, filter_map, from_just, maybe_case, maybe_map2
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.1
    record
    2022-03-11 · diff ↗ ·
    added 1 export
    %>%
  • 0.2.0
    record
    2022-02-11 · diff ↗ ·
    removed 2 exports
    flatten_maybe, map_maybe
    added 4 exports
    maybe_contains, maybe_equal, maybe_flatten, maybe_map
  • 0.1.0
    record
    2022-01-27
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-01-27
Total releases
5 / 4 yrs
License
MIT + file LICENSE OSI
Download size
459 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("maybe")
McNeil, A. (2023). maybe: The Maybe Monad (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.maybe

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for maybe version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy