browse_if_equals: Browse if equal to

View source: R/error_handling.R

browse_if_equalsR Documentation

Browse if equal to

Description

Browse on equals condition. Calls browse in the parent.frame so that one can see the context. Made for easier debugging. Pipe-friendly: returns output if condition is false. Wrapper for browse_if.

Usage

browse_if_equals(x, equal_to, check.names = T, check.attributes = T)

Arguments

x

(object) Any object.

equal_to

(any object) Any object to test for output equality.

check.names

(lgl) Whether to check names.

check.attributes

(lgl) Whether to check all attributes.

Examples

browse_if(1+1, 2)

Deleetdk/kirkegaard documentation built on March 26, 2024, 1:19 a.m.