Show a table with all attributes in the RStudio viewer and/or console
show_attribute_table(
x,
output = rock::opts$get("tableOutput"),
tableOutputCSS = rock::opts$get("tableOutputCSS")
)
x
, invisibly, unless being knitted into R Markdown,
in which case a knitr::asis_output()
-wrapped character vector is returned.
A rock_parsedSources
object (the result of a call to
rock::parse_sources
).
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.
The CSS to use for the HTML table.