Learn R Programming

catchr (version 0.2.31)

extract_display_string: Make a string to display from a condition

Description

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

Usage

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