rcloud.html.out {rcloud.support}R Documentation

Direct output functions in RCloud

Description

rcloud.html.out outputs content as-is directly into the current cell, typically to create HTML content.

rcloud.out evaluates and expression and sends the output into the R console.

Usage

rcloud.html.out(..., sep = "")
rcloud.out(expr, terminate = "\n")

Arguments

...

any strings to output

sep

string separator

expr

expression to evaluate

terminate

string to use to terminate the output

Details

rcloud.html.out pastes ... together using separator sep and collapsing the result using "\n" and appends the resulting string as-is in the cell output. It means that nothing is escaped such that HTML-tags can be used and will interpreted by the browser. This allows creating out DOM objects and any other arbitrary HTML.

rcloud.out evaluates the expression (in parent frame) and prints the output (if visible) into the RCloud console. In interactive use it is mostly equivalent to regular print(), but in non-interactive use or special cases (e.g. inside sink() or capture.output()) it makes sure that the output explicitly sent to the client side as console output.

Value

Both functions return the resulting string invisibly

Author(s)

Simon Urbanek

Examples

Run examples

  rcloud.html.out("<b><font color=red>Bold RED text!</font></b><br>")
  rcloud.out(str(iris))

[Package rcloud.support version 2.3-1 Index]