Skip to content

Crossref with interactive tables (e.g., DT::datatable) #628

Answered by cderv
jack-davison asked this question in Q&A
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
Category
Q&A
Labels
tables Issues with Tables including the gt integration
2 participants