Created
September 6, 2022 13:17
-
-
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)
This file contains 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: " " | |
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