powered by
This function lets you print a reactable in a quarto document
printReactable( data, columns = NULL, groupBy = NULL, defaultPageSize = 20, highlight = TRUE, striped = TRUE, searchable = TRUE, filterable = TRUE )
Nothing but the html code for the table is printed (to be used in a quarto document)
The data for the table
The formating for the columns
A column or columns to group the table by
The number of rows in the table
whether to highlight the row of interest
whether the rows change color to give a striped appearance
whether you can search in the table
whether you can filter the table
Input the values for reactable::reactable
Other helper: addTarColumn(), formatBinaryCovariateName(), getExampleConnectionDetails(), getOutcomeTable(), getTargetTable(), kableDark(), removeSpaces()
addTarColumn()
formatBinaryCovariateName()
getExampleConnectionDetails()
getOutcomeTable()
getTargetTable()
kableDark()
removeSpaces()
printReactable( data = data.frame(a=1,b=4) )
Run the code above in your browser using DataLab