reactivate_breadcrumbs | R Documentation |
Re-activate breadcrumbs messages on error.
reactivate_breadcrumbs()
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.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.