shiny (version 0.2.3)

reactiveText: Text Output

Description

Makes a reactive version of the given function that also uses cat to turn its result into a single-element character vector.

Usage

reactiveText(func)

Arguments

func
A function that returns an R object that can be used as an argument to cat.

Details

The corresponding HTML output tag can be anything (though pre is recommended if you need a monospace font and whitespace preserved) and should have the CSS class name shiny-text-output.

The result of executing func will passed to cat, inside a capture.output call.