print.decorated: Print a Decorated Function

Description Usage Arguments Examples

View source: R/decorated.R

Description

The print.decorated function naively prints x as a function. In reality, the function printed may be the final of any number of decorators to a decoratee. To get the original function or the decorators wrapping it use original and decorators.

Usage

1
2
## S3 method for class 'decorated'
print(x, ...)

Arguments

x

A decorated function.

...

Additional arguments for next print method.

Examples

1
2
3
4
source_decoratees(tinsel_example('tags.R'))

print(html_paragraph)
print(html_bold)

tinsel documentation built on May 2, 2019, 1:30 p.m.