Context managers
ContextManager(
enter = function() {
},
exit = function() {
},
error = NULL,
as = NULL
)
function to run before taking actions
function to run after taking actions
optional function to run if an error is thrown
character optional way to specify a default name for assigning the return of the enter function.
an S3 class "contextManager" object
with-context-manager