reactivate_breadcrumbs: Re-Activate Breadcrumbs.

Description Usage Details Examples

View source: R/breadcrumbs.R

Description

Re-activate breadcrumbs messages on error.

Usage

1

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

1
2
3
4
5
6
7
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()

openscienceunil/modulr documentation built on May 3, 2019, 5:49 p.m.