Interrupt the execution of an expression or a pipe and allow the inspection of the environment where browser was called from.

browser(...)

Arguments

...

Further arguments to be passed to browser.

Details

See browser.

Examples

not_run({ library(magrittr) (function() { "foobar" %>% browser() %>% print })() }) reset()
#> [2017-06-21T21:58:18 UTC] Resetting modulr state ... OK
define("foo", NULL, function() {foo <- "bar"; browser()})
#> [2017-06-21T21:58:18 UTC] Defining 'foo' ... OK
## Not run: make() reset()
#> [2017-06-21T21:58:18 UTC] Resetting modulr state ... OK
define("foobar", NULL, function() { library(magrittr) "foobar" %>% browser %>% print })
#> [2017-06-21T21:58:19 UTC] Defining 'foobar' ... OK
## Not run: make()