Skip to content

Instantly share code, notes, and snippets.

@arraytools
Created September 6, 2022 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arraytools/e53610426523c91cae0c487b5dd148e0 to your computer and use it in GitHub Desktop.
Save arraytools/e53610426523c91cae0c487b5dd148e0 to your computer and use it in GitHub Desktop.
create a table of URL links to shiny examples (https://github.com/rstudio/shiny-examples)
---
title: " "
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(dplyr)
library(knitr)
library(kableExtra)
library(stringr)
```
```{r}
d <- list.files("~/github/shiny-examples")
d <- d[stringr::str_starts(d, "[:digit:]")]
url <- paste0("http://gallery.shinyapps.io/", d)
o <- data.frame(Example = cell_spec(d, "html", link = url))
o %>% kable("html", escape = FALSE) %>%
kable_styling("striped", full_width = F, position = "left")
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment