grapes-decorates-grapes: Defines a generic decorator to be used by other closures (or...

Description Usage Arguments

Description

Defines a generic decorator to be used by other closures (or functions within functions). Reference http://weinstockj.github.io/blog/2016/06/08/decorators-in-r/ for more information. Decorators are a concept which is borrowed from Python. In Python, they are built into the language, but in R we must first define a Decorator operator just as this one. handle_exceptions() is a function which is meant to decorate other functions.

Usage

1
decorator %decorates% f

Arguments

decorator

a function to decorate another function

f

a function which is decorated


HSPS-DataScience/HSPSUtils documentation built on May 24, 2019, 7:37 a.m.