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:Colin Fay [aut, cre]

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
DESCRIPTION |NEWS
card.svg |card.png
attempt/json (API)

# 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

On CRAN:

Conda:

12.14 score 125 stars 105 packages 230 scripts 10k downloads 36 exports 1 dependencies

Last updated from:2ef9bcc289. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK122
source / vignettesOK185
linux-release-x86_64OK120
macos-release-arm64OK81
macos-oldrel-arm64OK70
windows-develOK78
windows-releaseOK71
windows-oldrelOK52
wasm-releaseOK100

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
silently() | surely() | with_message() and with_warning() | without_message(), without_warning(), and discretly()

Last update: 2022-12-14
Started: 2018-01-30

Condition handling
warnings and messages | In function | none, all, any | on_error()

Last update: 2022-12-14
Started: 2018-01-30

If
if_ conditions

Last update: 2022-12-14
Started: 2018-01-30

Try Catch
attempt | silent_attempt | try catch | With mappers | Traditionnal way | try_catch_df() | map_try_catch()

Last update: 2022-12-14
Started: 2018-01-30

attempt
Introduction to | Install | Using | try catch | adverbs | if | conditions | About mappers | Misc | Acknowledgments | Contact

Last update: 2019-04-08
Started: 2018-01-30

Tests and Coverage
Coverage | Unit Tests

Last update: 2019-04-03
Started: 2019-04-03

Readme and manuals

Help Manual

Help pageTopics
Attemptattempt
discretlydiscretly
Test for all, any or noneif_all if_any if_none
If this, then thatif_else if_not if_then
Is the element of class "try-error"?is_try_error
Add a function to be run on erroron_error
Silently attemptsilent_attempt
Silentlysilently
Warn ifmessage_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
surelysurely
Try Catchmap_try_catch map_try_catch_df try_catch try_catch_df
Manipulate messages and warningswithout_message without_warning with_message with_warning