knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) dir <- tempdir() setwd(dir)
library(shiny.quartz)
All shiny apps should be created in R packages according to the structure documented in mastering-shiny
shiny.quartz includes several helpers to generate a shiny app.
These are included in the utils family of shiny.quartz.
They include use_mod, use_app, use_dev, and use_run_app.
To create a new project, I normally create a new repo and initialize git.
```{bash, run = FALSE} mkdir test_project cd test_project git init
```{bash}
pwd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.