Recommended way to initialize JS renderer in 'asis' Markdown chunck

前端 未结 3 514
遇见更好的自我
遇见更好的自我 2020-12-07 02:40

\'asis\' chuncks are very useful to output a list of objects in a Markdown document, see following examples : Highcharter, DT, Leaflet, ...

However, in the above exam

3条回答
  •  不知归路
    2020-12-07 03:20

    You can output multiple datatables without asis. Just put the list of widgets into tagList()

    ```{r}
    library(purrr)
    list("cars" = mtcars, "flowers" = iris) %>%
      map(~DT::datatable(.x)) %>%
      htmltools::tagList()
    ```
    

提交回复
热议问题