browser_if: Call browser if given condition is TRUE

Description Usage Arguments Details Value

Description

I often found myself wrapping a call to browser in an if statement.

Usage

1
browser_if(truth = stop("truth not supplied"))

Arguments

truth

An epression that evaluates to a logical value

Details

This function takes a logical expression and, if it evaluates to true, calls browser.

This is defined as a macro so that when browser is invoked, it have the context of the place where browser_if was called

Value

Nothing


aguynamedryan/helpRs documentation built on Dec. 18, 2021, 11:23 p.m.