Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ContextManager

Context managers


Description

Context managers

Usage

ContextManager(
  enter = function() { },
  exit = function() { },
  error = NULL,
  as = NULL
)

Arguments

enter

function to run before taking actions

exit

function to run after taking actions

error

optional function to run if an error is thrown

as

character optional way to specify a default name for assigning the return of the enter function.

Value

an S3 class "contextManager" object

See Also

with-context-manager


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.