is.decorated: Decorated Functions

Description Usage Arguments Value Examples

View source: R/decorated.R

Description

Returns TRUE if the function f is decorated, otherwise FALSE.

Usage

1

Arguments

f

A function.

Value

TRUE or FALSE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
source_decoratees(tinsel_example('timer.R'))

# sourced from the timer.R example file
is.decorated(waldo)
is.decorated(jack)

# it's a function, but not decorated
is.decorated(mean)

# far from the mark
is.decorated(3030)

nteetor/tinsel documentation built on May 24, 2019, 9:56 a.m.