Creates message string for reporting during procedures

create_message(
  mess,
  h = integer(0),
  indent = integer(0),
  prefix = "",
  h_marks = "-",
  h_prefix = character(),
  h_prefix_sep = " ",
  pretty = getOption("disambr_mess_pretty"),
  mess_color = "green",
  h_prefix_color = "blue",
  ...
)

Arguments

mess

Message to report. If prefixed by h h_marks it will be ouline of level h

h

Forse specific ouline level of message

indent

Forse indentation

prefix

Add overal prefix

h_marks

Marks that sets outline. Default is "-". Can be many characters, e.g. "-*#".

h_prefix

Character vector of prefixes for each outline level

h_prefix_sep

Separator between h_prefix and mess

pretty

Whether to use "crayon" package for pretty printing

mess_color

Color of message

h_prefix_color

Color of ouline prefix

...

Here we can pass verbose argument from upper functions. Default is TRUE

Value

Message string