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

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

Arguments

x

A rockParsedSources 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.