Package: adorn 0.1.0

adorn: A Framework for Writing and Applying Function Decorators

A framework for creating function decorators in R. Decorators can be applied to functions and to S3, S4, S7 and R6 methods.

Authors:Dyfan Jones [aut, cre]

adorn_0.1.0.tar.gz
adorn_0.1.0.zip(r-4.7-any)adorn_0.1.0.zip(r-4.6-any)adorn_0.1.0.zip(r-4.5-any)
adorn_0.1.0.tgz(r-4.6-any)adorn_0.1.0.tgz(r-4.5-any)
adorn_0.1.0.tar.gz(r-4.7-any)adorn_0.1.0.tar.gz(r-4.6-any)
adorn_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
adorn/json (API)

# Install 'adorn' in R:
install.packages('adorn', repos = c('https://dyfanjones.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dyfanjones/adorn/issues

Pkgdown/docs site:https://dyfanjones.github.io

On CRAN:

Conda:

decoratorsrlanguage

3.78 score 1 stars 1 packages 7 scripts 8 exports 1 dependencies

Last updated from:29ea25d0f4. Checks:7 FAIL, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develFAIL86
source / vignettesOK218
linux-releaseFAIL82
macos-releaseFAIL90
macos-oldrelFAIL88
windows-develFAIL66
windows-releaseFAIL55
windows-oldrelFAIL70
wasm-releaseOK103

Exports::=%@%decoratedecorate<-decoratordecorator_contextdecoratorsundecorate

Dependencies:S7

Designing decorators
Choosing a style | What a decorated call costs | Pitfalls | State in a call-style decorator | Work done on every call that could be done once | Anonymous functions | Losing invisible() | Recursion goes through the decorator every time | Changing the signature with formals = "replace" | Order of stacked decorators | Reading errors | Mistakes decorator() catches for you | A checklist

Last update: 2026-10-31
Started: 2026-10-27

Changing a function's signature
What you take on | partial | Stacking | curry | Adding an argument | Decorating methods | What it costs

Last update: 2026-10-29
Started: 2026-10-29

Decorating S3, S4, S7 and R6 methods
Defining a method | S3 | S4 | S7 | R6 | Decorating a method that already exists

Last update: 2026-10-29
Started: 2026-10-26

Writing decorators
timed | logged | memoize | once | retry | partial

Last update: 2026-10-29
Started: 2026-10-26