show_attribute_table {rock}R Documentation

Show a table with all attributes in the RStudio viewer and/or console

Description

Show a table with all attributes in the RStudio viewer and/or console

Usage

show_attribute_table(
  x,
  output = rock::opts$get("tableOutput"),
  tableOutputCSS = rock::opts$get("tableOutputCSS")
)

Arguments

x

A rock_parsedSources object (the result of a call to rock::parse_sources).

output

The output: a character vector with one or more of "console" (the raw concatenated input, without conversion to HTML), "viewer", which uses the RStudio viewer if available, and one or more filenames in existing directories.

tableOutputCSS

The CSS to use for the HTML table.

Value

x, invisibly, unless being knitted into R Markdown, in which case a knitr::asis_output()-wrapped character vector is returned.


[Package rock version 0.8.1 Index]