printReactable | R Documentation |
This function lets you print a reactable in a quarto document
printReactable(
data,
columns = NULL,
groupBy = NULL,
defaultPageSize = 20,
highlight = TRUE,
striped = TRUE
)
data |
The data for the table |
columns |
The formating for the columns |
groupBy |
A column or columns to group the table by |
defaultPageSize |
The number of rows in the table |
highlight |
whether to highlight the row of interest |
striped |
whether the rows change color to give a striped appearance |
Input the values for reactable::reactable
Nothing but the html code for the table is printed (to be used in a quarto document)
Other helper:
getExampleConnectionDetails()
,
kableDark()
,
removeSpaces()
printReactable(
data = data.frame(a=1,b=4)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.