This function lets you print a reactable in a quarto document
Usage
printReactable(
data,
columns = NULL,
groupBy = NULL,
defaultPageSize = 20,
highlight = TRUE,
striped = TRUE
)
See also
Other helper:
getExampleConnectionDetails()
,
kableDark()
,
removeSpaces()
Examples
printReactable(
data = data.frame(a=1,b=4)
)
#> <div class="reactable html-widget html-fill-item" id="htmlwidget-ac96cb3ee4656e2e9ec3" style="width:auto;height:auto;"></div>
#> <script type="application/json" data-for="htmlwidget-ac96cb3ee4656e2e9ec3">{"x":{"tag":{"name":"Reactable","attribs":{"data":{"a":[1],"b":[4]},"columns":[{"id":"a","name":"a","type":"numeric"},{"id":"b","name":"b","type":"numeric"}],"defaultPageSize":20,"highlight":true,"striped":true,"dataKey":"74006b58611cd0240b77609648c1a054"},"children":[]},"class":"reactR_markup"},"evals":[],"jsHooks":[]}</script>