extract_display_string: Make a string to display from a condition

Description Usage Arguments Value

View source: R/make-handlers.R

Description

Turn a condition into a string comprised of its message, name, and call, in a variety of configurations.

Usage

1
extract_display_string(cond, cond_name = NA, include_call = T)

Arguments

cond

A condition to display or turn into a string

cond_name

Either the name of the condition you want to display, NA if you want the condition name to be assigned by default (the first class of the condition), or NULL if you don't want the condition type displayed at all.

include_call

A logical; if FALSE the call won't be included in the string even if present in the condition.

Value

A string


catchr documentation built on Aug. 31, 2020, 5:11 p.m.