Skip to content

attempt

0.3.1Package record

Tools for Defensive Programming

16packages dependsuggested by 3
117.8Kdownloads / year
84.6%test coverage
8/13flavors OK

Overview

About

Tools for defensive programming, inspired by 'purrr' mappers and based on 'rlang'.'attempt' extends and facilitates defensive programming by providing a consistent grammar, and provides a set of easy to use functions for common tests and conditions. 'attempt' only depends on 'rlang', and focuses on speed, so it can be easily integrated in other functions and used in data analysis.

Changes in 0.3.1
  • discretly() is now aliased discreetly

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  attempt/R/try_catch.R (.Names: 1)
'.Names' should be changed to 'names'.

CRAN check page ↗

Slowest check: 1.3 min · r-devel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTE2026-09-08
  • ERROR8 OK, 4 NOTE, 1 ERROR2026-09-07
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.1
READMEYes · 850 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.3.1Citation fileNo
Help pages
13includes a package overview page
Examples that run
42%5 run in a plain check · 7 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
75%
Help pages citing references
0%

Downloads

117.8K
CRAN downloads in the past year
Rank #1,333 · ~323/day · ~9.8K/mo
Daily download trend is not available in this view yet.
7.3K30 days
21.6K90 days
117.8K1 year
Compare downloads with other packages →
Also on1.5K r2u20 autocran1.9K conda_forge147 c2d4u

Repository

125Stars
11Forks
6Open issues
0Open PRs
0Releases
133Commits
7Commit identities
133 commits · Last activity 2026-01-30
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-01-15 · 1252026-07-07 · 125
PracticesBeta

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

Checks run against github.com/colinfay/attempt on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (2)
README.Rmd

GitHub Pages site last deployed 2026-01-30

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing attempt adds 1 package (1 with compiled code, 766 KB of source tarballs). Heaviest: rlang 766 KB.

Depends (0)
none
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
16direct
54indirect
Imports 16
Suggested by 3
Show all 19 packagesHide all 19 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2018)
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
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.1Latest
    record
    2020-05-03 · current release · diff ↗ ·
    added 1 export
    discreetly
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.0
    record
    2019-04-08 · diff ↗ ·
    added 3 exports
    discretly, is_try_error, on_error
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.1
    record
    2018-04-20 · diff ↗ ·
    added 2 exports
    without_message, without_warning
  • 0.2.0
    record
    2018-01-31 · diff ↗ ·
    added 3 exports
    if_not, with_message, with_warning
  • 0.1.0
    record
    2018-01-03
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-01-03
Total releases
5 / 8 yrs
License
MIT + file LICENSE OSI
Download size
77 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("attempt")
Fay, C. (2020). attempt: Tools for Defensive Programming (Version 0.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.attempt

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 attempt version 0.3.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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