Skip to content
Discussion options

You must be logged in to vote

An issue in RMarkdown was the automatic labelling of DT::datatable() outputs as "Figure X: ..."

Currently the limitation is the same as answered in #782 (comment).
They can be referenced as figures

```{r}
#| label: fig-dt
#| tbl-cap: "My DT table."
DT::datatable(iris)
```

DT and other interactive tables are htmlwidgets and "special" HTML table, they cannot be referenced as Table yet. We'll try to improve support for this in the future.

Related issues: #1084

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jjallaire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tables Issues with Tables including the gt integration
2 participants