warnings2character: Returns the warning messages stored in 'x' which is an object...

View source: R/warnings2character.R

warnings2characterR Documentation

Returns the warning messages stored in 'x' which is an object of type "warnings" as retunred from warnings().

Description

Returns the warning messages stored in 'x' which is an object of type "warnings" as retunred from warnings().

Usage

warnings2character(
  x = warnings(),
  numbering = TRUE,
  header = TRUE,
  width.cutoff = 50L,
  nlines = 2L
)

Arguments

x

is the warnings-object to translate to character string vector.

numbering

is TRUE if numbering should be adde to the warnings, as is done when warnings() is used.

header

is TRUE the first string of the output is "Warning message" or "Warning messages".

width.cutoff

is an integer in [20, 500] determining the cutoff at which line-breaking is tried.

nlines

is an integer giving the maximum number of lines to produce. Negative values indicate no limit.


arnejohannesholmin/echoIBM documentation built on April 14, 2024, 11:37 p.m.