本文于2026-03-28更新。 如发现问题或者有建议,欢迎提交 Issue
## Error in `library()`:
## ! there is no package called 'tidyverse'
## Error in `library()`:
## ! there is no package called 'DT'
加标题 [@DT]
iris %>%
datatable(caption = "Table 1: This is a simple caption for the table.")
## Error in `iris %>% datatable(caption = "Table 1: This is a simple caption for the table.")`:
## ! could not find function "%>%"

表格中插入链接 [@DT]
'<a href="http://rstudio.com">RStudio</a>' %>%
as_tibble() %>%
datatable(escape = F)
## Error in `"<a href=\"http://rstudio.com\">RStudio</a>" %>% as_tibble() %>% datatable(
## escape = F)`:
## ! could not find function "%>%"
