Create messages for use in the portalcasting pipeline. messageq: Optionally generate a message based on a logical input. Uses a wrapper on message that, given the input to quiet, generates the message(s) in ... or not. break_line: Creates a horizontal line of characters ending with a newline call for messages. break_lines: Creates a set of horizontal line of characters ending with a newline call for messages. castle: Creates a text drawing of a sandcastle of characters for messages.
Usage
messageq(..., quiet = FALSE, domain = NULL, appendLF = TRUE)
break_line(char = "-", reps = 60)
break_lines(nlines = 2, char = "-", reps = 60)
castle()Arguments
- ...
zero or more objects that can be coerced to
characterand are concatenated with no separator added, or a single condition object. Seemessage.- quiet
logicalindicator if the message should be generated.- domain
The domain for the translation. If
NA, messages will not be translated. Seemessageandbase::gettext.- appendLF
logicalindicator if messages given as acharacterstring should have a newline appended. Seemessage.- char
charactervalue to repeatedrepstimes to form the break line.- reps
integer-conformable value for number of timescharis replicated.- nlines
integer-conformable value for the number ofbreak_lines to include. Defaults to2lines.
Value
messageq: A message is given, and NULL returned, invisible-ly. break_line: The character of the line to be passed to message via messageq. break_lines: The character of the lines to be passed to message via messageq. castle: The character of the sandcastle to be passed to message via messageq.
See also
Other utilities:
file_ext(),
foy(),
ifnull(),
named_null_list(),
package_version_finder(),
round_na.interp(),
update_list()