console_help | R Documentation |
User updates and interaction via the console in default color and style
console_help()
say(..., lev = 0, sub = 0, clear = FALSE)
cat0(..., clear = FALSE)
continue(clear = FALSE)
xcon()
... |
An arbitrary number of atomic arguments to be atomized collapsed into a character scalar message to the user. If no values are supplied and |
lev |
Either |
sub |
Either |
clear |
Either |
NULL
.
say()
: Flattens ...
to a character scalar message and either (a) prints it to the console or (b) structures it as an update and prints it to the console. When ...
is empty, the message defaults to a single dot ("."
). Allows for structuring user update messages at hierarchical levels as explained in the following table:
VALUE | PREFIX OF MESSAGE |
OF lev | POSTED TO CONSOLE |
0 | < none > |
1 | < newline > |
2 | < newline > + '| ' |
3 | < newline > + '| > ' |
4 | < newline > + '| | > ' |
5 | < newline > + '| | | > ' |
... | ... |
cat0()
: Flattens ...
into a character scalar and prints it to the console preceded and succeeded by a new line.
continue()
: Prints "Hit [enter] or [return] to continue"
to the console and pause execution until the user hits the enter or return key.
xcon()
: Clears the console.
Other meta:
callers()
,
dot_args()
,
pause()
,
ply_help()
,
purge_help()
,
recycling_help()
,
run()
Other console:
alert_utils()
xcon()
cat0("msg on its own line")
chat. <- function() {
say("msg 1A", lev = 1)
say("msg 2A", lev = 2)
say("msg 2B", lev = 2)
say("msg 3A", lev = 3)
say("msg 3B", lev = 3)
say()
say()
say()
say("msg 3C", lev = 3)
say("msg 4A", lev = 4)
say("msg 4B", lev = 4)
say("msg 5A", lev = 5)
say(lev = 6)
say(lev = 6)
say("msg 5B", lev = 5)
say("msg 3D", lev = 3)
say()
say()
say("msg 1B", lev = 1)
say(" + a_random_mssg")
}
chat.()
## Not run: continue()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.