browser: Environment, Module, and Pipe Browser.

Description Usage Arguments Details Examples

View source: R/browser.R

Description

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

Usage

1

Arguments

...

Further arguments to be passed to browser.

Details

See browser.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## 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()

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