browser: Environment, Module, and Pipe Browser.

View source: R/browser.R

browserR Documentation

Environment, Module, and Pipe Browser.

Description

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

Usage

browser(...)

Arguments

...

Further arguments to be passed to browser.

Details

See browser.

Examples

## Not run: 
library(magrittr)
(function() {
  "foobar" %>%
    browser() %>%
    print
})()
## End(Not run)

reset()
define("foo", NULL, function() {foo <- "bar"; browser()})
## Not run: make()

reset()
define("foobar", NULL, function() {
  library(magrittr)
  "foobar" %>%
    browser %>%
    print
})
## Not run: make()

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