Description Usage Arguments Details Value Shortcut keys in widget Author(s) References Examples
An experimental tcl/tk output widget
1 2 3 4 5 6 7 |
echo |
A logical indicating whether calls should be output to the sink. Default is |
split |
A logical indicating whether output (but not messages) should be split between the console and the sink. Default is |
fontFamily |
The font family used in rite. Default is “ |
fontSize |
The font size used in rite. Default is |
col.bg |
A one-element character string indicating a tcl/tk color for the background color of the sink. A list of available tcl/tk colors can be found here: http://www.tcl.tk/man/tcl8.5/TkCmd/colors.htm. |
col.call |
A two-element character vector indicating tcl/tk colors for the foreground and background, respectively, of evaluated R calls (only visible if |
col.result |
A two-element character vector indicating tcl/tk colors for the foreground and background, respectively, of standard output. |
col.err |
A two-element character vector indicating tcl/tk colors for the foreground and background, respectively, of errors. |
col.warn |
A two-element character vector indicating tcl/tk colors for the foreground and background, respectively, of warnings. |
col.msg |
A two-element character vector indicating tcl/tk colors for the foreground and background, respectively, of messages. |
quiet |
A logical indicating whether to suppress confirmation that everything is cleaned up. Default is |
These functions make use of a couple of different R features to build a color-coded output window for the R console. While the console is limited to displaying output in monochrome plain text, the rite sink allows multi-colored output and messages to be piped to a single widget that highlights errors, warning, and messages. Unlike a traditional sink, rite sink is a tcl/tk widget that updates output as commands and messages occur. Accomplishing this requires the use of sink
, task callbacks, and a custom error handler. (This is similar to the R2HTML package.)
sinkstart
starts the sink and sinkstop
stops the sink without destroying the widget. Closing the sink widget invisibly calls sinkstop
and cleans up. The sink can be turned on and off repeatedly without closing the widget.
NULL
<Ctrl-c>
: Copy
<Ctrl-x>
: Cut
<Ctrl-p>
: Paste
<Ctrl-a>
: Select all
<Ctrl-s>
: Save output
<Ctrl-l>
: Clear output
Thomas J. Leeper
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.