Skip to contents

Guidelines

All shiny apps should be created in R packages according to the structure documented in mastering-shiny

Project Setup

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.

mkdir test_project
cd test_project
git init
#> hint: Using 'master' as the name for the initial branch. This default branch name
#> hint: is subject to change. To configure the initial branch name to use in all
#> hint: of your new repositories, which will suppress this warning, call:
#> hint: 
#> hint:    git config --global init.defaultBranch <name>
#> hint: 
#> hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
#> hint: 'development'. The just-created branch can be renamed via this command:
#> hint: 
#> hint:    git branch -m <name>
#> Initialized empty Git repository in /home/runner/work/shiny.quartz/shiny.quartz/vignettes/test_project/.git/
pwd

#> /home/runner/work/shiny.quartz/shiny.quartz/vignettes