Package: attempt 0.3.1
attempt: Tools for Defensive Programming
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.
Authors:
attempt_0.3.1.tar.gz
attempt_0.3.1.zip(r-4.7)attempt_0.3.1.zip(r-4.6)attempt_0.3.1.zip(r-4.5)
attempt_0.3.1.tgz(r-4.6-any)attempt_0.3.1.tgz(r-4.5-any)
attempt_0.3.1.tar.gz(r-4.7-any)attempt_0.3.1.tar.gz(r-4.6-any)
attempt_0.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
attempt/json (API)
NEWS
| # Install 'attempt' in R: |
| install.packages('attempt', repos = c('https://colinfay.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/colinfay/attempt/issues
Last updated from:2ef9bcc289. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 115 | ||
| source / vignettes | OK | 162 | ||
| linux-release-x86_64 | OK | 113 | ||
| macos-release-arm64 | OK | 86 | ||
| macos-oldrel-arm64 | OK | 97 | ||
| windows-devel | OK | 74 | ||
| windows-release | OK | 69 | ||
| windows-oldrel | OK | 112 | ||
| wasm-release | OK | 104 |
Exports:attemptdiscretlyif_allif_anyif_elseif_noneif_notif_thenis_try_errormap_try_catchmap_try_catch_dfmessage_ifmessage_if_allmessage_if_anymessage_if_nonemessage_if_noton_errorsilent_attemptsilentlystop_ifstop_if_allstop_if_anystop_if_nonestop_if_notsurelytry_catchtry_catch_dfwarn_ifwarn_if_allwarn_if_anywarn_if_nonewarn_if_notwith_messagewith_warningwithout_messagewithout_warning
Dependencies:rlang
Adverbs
Rendered fromc_adverbs.Rmdusingknitr::rmarkdownon Jun 01 2026.Last update: 2022-12-14
Started: 2018-01-30
Condition handling
Rendered frome_conditions.Rmdusingknitr::rmarkdownon Jun 01 2026.Last update: 2022-12-14
Started: 2018-01-30
Tests and Coverage
Rendered fromtests_and_coverage.Rmdusingknitr::rmarkdownon Jun 01 2026.Last update: 2019-04-03
Started: 2019-04-03
If
Rendered fromd_if.Rmdusingknitr::rmarkdownon Jun 01 2026.Last update: 2022-12-14
Started: 2018-01-30
attempt
Rendered froma_intro_attempt.Rmdusingknitr::rmarkdownon Jun 01 2026.Last update: 2019-04-08
Started: 2018-01-30
Try Catch
Rendered fromb_try_catch.Rmdusingknitr::rmarkdownon Jun 01 2026.Last update: 2022-12-14
Started: 2018-01-30
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Attempt | attempt |
| discretly | discretly |
| Test for all, any or none | if_all if_any if_none |
| If this, then that | if_else if_not if_then |
| Is the element of class "try-error"? | is_try_error |
| Add a function to be run on error | on_error |
| Silently attempt | silent_attempt |
| Silently | silently |
| Warn if | message_if message_if_all message_if_any message_if_none message_if_not stop_if stop_if_all stop_if_any stop_if_none stop_if_not warn_if warn_if_all warn_if_any warn_if_none warn_if_not |
| surely | surely |
| Try Catch | map_try_catch map_try_catch_df try_catch try_catch_df |
| Manipulate messages and warnings | without_message without_warning with_message with_warning |
