reactivate_breadcrumbs: Re-Activate Breadcrumbs.

View source: R/breadcrumbs.R

reactivate_breadcrumbsR Documentation

Re-Activate Breadcrumbs.

Description

Re-activate breadcrumbs messages on error.

Usage

reactivate_breadcrumbs()

Details

Breadcrumbs messages are activated by default when the modulr package is loaded. This is done by binding a wrapper function to the error option. The function wraps any other previously binded function and the get_breadcrumbs function together. Since IDEs like RStudio are likely to reset this option during the lifetime of an R session, reactivate_breadcrumbs can be useful to re-install the wrapper function.

Examples

reset()
options(error = browser)
reactivate_breadcrumbs()
define("foo", NULL, function() function() stop("error in 'foo'"))
define("bar", list(foo = "foo"), function(foo) function() foo())
define("foobar", list(bar = "bar"), function(bar) bar())
## Not run: make()


aclemen1/modulr documentation built on Oct. 2, 2024, 7:18 a.m.