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.
1 | decorator %decorates% f
|
decorator |
a function to decorate another function |
f |
a function which is decorated |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.