Context.RdObjects of this class are used to capture textual and graphical output, e.g. to display them in Jupyter notebook cells or dedicated widgets.
last.valueValue of last evaluated expression.
do()Evaluate one or several expressions
Context$do(..., envir = NULL, enclos = parent.frame())...A single expression or several expressions included in curly braces.
envirA list or an environment or NULL
enclosAn enclosing an environment (see eval).
eval()Evaluate a single expression
Context$eval(expr, envir = NULL, enclos = parent.frame())exprA single expression.
envirA list or an environment or NULL
enclosAn enclosing an environment (see eval).
evaluate()Evaluate a single expression
Context$evaluate(expressions, envir = NULL, enclos = parent.frame())expressionsA list of expressions.
envirA list or an environment or NULL
enclosAn enclosing an environment (see eval).
enter()A function that is called before a set of expressions is evaluated (e.g. in a notebook cell).
Context$enter(enclos = parent.frame())exit()A function that is called after a set of expressions is evaluated (e.g. in a notebook cell).
on_enter()Add or remove a handler function to be called by the
enter() function, i.e. before a series of expression
is evaluated.
on_exit()Add or remove a handler function to be called by the
exit() function, i.e. after a series of expression
has been evaluated.
on_eval()Add or remove a handler function to be called after every time an expression has been evaluated.
on_result()Add or remove a handler function to the results of each evaluated expression.
handlerA handler function. This function must take two arguments,
the value resulting from the evalualition of the expression
and a logical value, which indicates whether the value is visible.
See also withVisible.
removeA logical value, whether the handler should be removed or added
on_error()Add or remove a handler function to be called if an error condition is
raised, e.g. by stop().
on_warning()Add or remove a handler function to be called if an warning is
raised, e.g. by stop().
on_print()Add or remove a handler function to be called if an object is
output print().
on_cat()Add or remove a handler function to be called if text is output using
cat().
on_str()Add or remove a handler function to be called if the structure of an object
is shown using str().