Skip to contents

Renders a comprehensive HTML overview of a TFL specification and displays it in the RStudio Viewer pane. Requires RStudio and the htmltools package.

Usage

view_tfl_spec(spec)

Arguments

spec

A TFL_spec object.

Value

TRUE invisibly on success, FALSE invisibly if the viewer could not be opened (e.g. not running inside RStudio or htmltools is missing).

See also

create_table(), tfl_spec_preview_selection() (RStudio addin wrapping this preview for the selected object)

Examples

if (FALSE) { # \dontrun{
# Inside RStudio: opens the HTML spec overview in the Viewer pane
spec <- create_table(mtcars) |> add_title("Table 1")
view_tfl_spec(spec)
} # }