Last active
February 12, 2024 09:33
-
-
Save mcjmigdal/61c169eda04bb128064a8057fe7faa25 to your computer and use it in GitHub Desktop.
Rmarkdown datatable with tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "datatable with tabs" | |
| author: "migdal" | |
| date: "`r Sys.Date()`" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) | |
| ``` | |
| ```{r results="asis"} | |
| dts <- list( | |
| shiny::tabPanel('cars', DT::datatable(cars)), | |
| shiny::tabPanel('iris', DT::datatable(iris)) | |
| ) | |
| do.call(shiny::tabsetPanel, dts) | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment