Skip to content

Instantly share code, notes, and snippets.

@mcjmigdal
Last active February 12, 2024 09:33
Show Gist options
  • Select an option

  • Save mcjmigdal/61c169eda04bb128064a8057fe7faa25 to your computer and use it in GitHub Desktop.

Select an option

Save mcjmigdal/61c169eda04bb128064a8057fe7faa25 to your computer and use it in GitHub Desktop.
Rmarkdown datatable with tabs
---
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