Package: garnish 0.1.0
garnish: Python-Style Decorators for R
Popular Python decorators ported to R with the 'adorn' framework: retrying, caching, context managers and argument validation.
Authors:
garnish_0.1.0.tar.gz
garnish_0.1.0.tar.gz(r-4.6-any)
garnish_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
garnish/json (API)
| # Install 'garnish' in R: |
| install.packages('garnish', repos = c('https://dyfanjones.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dyfanjones/garnish/issues
Pkgdown/docs site:https://dyfanjones.github.io
Last updated from:37c900aa0f. Checks:7 FAIL, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | FAIL | 83 | ||
| source / vignettes | OK | 165 | ||
| linux-release | FAIL | 83 | ||
| macos-release | FAIL | 104 | ||
| macos-oldrel | FAIL | 101 | ||
| windows-devel | FAIL | 42 | ||
| windows-release | FAIL | 48 | ||
| windows-oldrel | FAIL | 43 | ||
| wasm-release | OK | 104 |
Exports::=%@%after_sleep_baseafter_sleep_fnafter_sleep_logafter_sleep_noneas_decoratorbefore_sleep_basebefore_sleep_fnbefore_sleep_logbefore_sleep_nonecachecircuit_breakercontextmanagerdisk_cachelru_cacherate_limitretryretry_allretry_baseretry_fnretry_if_errorretry_if_error_messageretry_if_resultretry_neverstop_after_attemptstop_after_delaystop_allstop_anystop_basestop_before_delaystop_fnstop_neverteardownvalidate_argsvalidate_returnwait_basewait_chainwait_combinewait_expwait_exp_jitterwait_fixedwait_fnwait_nonewait_randwith_context
Last update: 2026-10-31
Started: 2026-10-31
Last update: 2026-10-31
Started: 2026-10-31
Last update: 2026-10-31
Started: 2026-10-31
Last update: 2026-10-31
Started: 2026-10-31
Last update: 2026-10-31
Started: 2026-10-31
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Write your own stop, wait, retry and hook strategies | after_sleep_base after_sleep_fn before_sleep_base before_sleep_fn extending_retry retry_base retry_fn stop_base stop_fn wait_base wait_fn |
| Run a hook after 'retry()' sleeps | after_sleep_log after_sleep_none |
| Use a context manager as a decorator | as_decorator |
| Run a hook before 'retry()' sleeps | before_sleep_log before_sleep_none |
| Stop calling a function that keeps failing | circuit_breaker |
| Write setup and teardown once | contextmanager teardown |
| Cache function results | cache disk_cache lru_cache |
| Limit how often a function can be called | rate_limit |
| Retry a function when it fails | retry |
| Retry conditions | retry_all retry_if_error retry_if_error_message retry_if_result retry_never |
| Stop conditions | stop_after_attempt stop_after_delay stop_all stop_any stop_before_delay stop_never |
| Validate arguments and return values | validate_args validate_return |
| Wait strategies | wait_chain wait_combine wait_exp wait_exp_jitter wait_fixed wait_none wait_rand |
| Run code inside a context | with_context |
