Classes and constructors to wrap output created by code
Usage
OutputWidget(append_output = FALSE, ...)
# S3 method for class 'OutputWidget'
with(data, expr, envir = list(), enclos = parent.frame(), clear = TRUE, ...)Arguments
- append_output
Logical value, whether new output is appended to existing output in the widget or the output is overwritten
- ...
Other arguments, ignored.
- data
An "OutputWidget" object
- expr
An expression to evaluate, or a sequence of expression, encapsulated by curly braces.
- envir
An environment or a list within which `expr` is evaluated.
- enclos
An enclosing environment.
- clear
A logical value, whether clear the output before evaluating `expr`
Super classes
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> OutputWidget
Public fields
_view_nameName of the Javascript model view in the frontend
_model_nameName of the Javascript model in the frontend
_view_moduleName of the module where the view is defined
_model_moduleName of the Javascript module with the model
_view_module_versionVersion of the module where the view is defined
_model_module_versionVersion of the module where the model is defined
msg_idUnicode string with the id of the last message sent to the frontend.
outputsA list with output strings
Methods
Inherited methods
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()
Method new()
Initializing function
Usage
OutputWidgetClass$new(append_output = TRUE, ...)Arguments
append_outputLogical, whether existing output should be appended to or overwritten.
...Any other arguments, passed to the superclass initializer.
envirAn environment, where expressions are evaluated.
use_displayLogical, whether the display mechanism is used internally for output streams.
Method display()
A variant of display for output within a display widget.
Arguments
...Arguments passed to the function
display_data.
Method stdout()
Handle output via stdout stream
Method stderr()
Handle output via stderr stream