show_attribute_table: Show a table with all attributes in the RStudio viewer and/or...

View source: R/show_attribute_table.R

show_attribute_tableR 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.


rock documentation built on Dec. 28, 2022, 1:55 a.m.