Skip to content

attempt

0.3.1

Tools for Defensive Programming

18packages depend
131.3Kdownloads / year
84.6%test coverage
8/13checks pass

Overview

About
Maintained by Colin FayFirst published 2018-01-035 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
5NOTE8OK
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
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.91
84.6%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 850 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
42%
Documented parameters
100%
Return-value docs
75%
References docs
0%

Downloads

131.3K
CRAN downloads in the past year
Rank #1,227 · ~360/day · ~10.9K/mo
Daily download trend is not available in this view yet.
7.5K30 days
27K90 days
131.3K1 year
Compare downloads with other packages →
Also on1.3K r2u28 autocran1.8K conda_forge74 c2d4u

Repository

Repository
125Stars
11Forks
6Open issues
0Open PRs
0Releases
133Commits
7Contributors
133 commits · Last activity 2026-01-30

Stars over time

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

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/colinfay/attempt on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Coverage (1)
Codecov
Show all practices
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (1)
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

5 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 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
    2020-05-03 · current release · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.0
    2019-04-08 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.1
    2018-04-20 · diff ↗
  • 0.2.0
    2018-01-31 · diff ↗
  • 0.1.0
    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
Installed size
not tracked yet
With dependencies
not tracked yet

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 is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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