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
character
and are concatenated with no separator added, or a single condition object. Seemessage
.- quiet
logical
indicator if the message should be generated.- domain
The domain for the translation. If
NA
, messages will not be translated. Seemessage
andbase::gettext
.- appendLF
logical
indicator if messages given as acharacter
string should have a newline appended. Seemessage
.- char
character
value to repeatedreps
times to form the break line.- reps
integer
-conformable value for number of timeschar
is replicated.- nlines
integer
-conformable value for the number ofbreak_line
s to include. Defaults to2
lines.
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()