RMI-PACTA / r2dii.usethis

Automate Package And Project Setup
https://2degreesinvesting.github.io/r2dii.usethis
Other
1 stars 2 forks source link

use_shiny helpers #41

Open maurolepore opened 3 years ago

maurolepore commented 3 years ago

As a developer of shiny apps I would like to have usethis-like helpers to build infrastructure as documented in the book mastering shiny.

The golem package does something similar but tends to add more infrastructure than we need. It also pre dates the book mastering shiny so it does not implement some of the conventions iconed in that book.

Examples:

create_shiny_package()  # create a package to host a shiny app
use_shiny_run_app()  # create R/run_app.R including run_app()
use_shiny_r_module()  # create R/modulename.R including modnameUI(), modnameServer(), and modnameApp().
use_shiny_app()  # create app.R
use_shiny_readme_rmd()  # create README.Rmd with a focus on shiny, e.g. include example of `if (interactive()) run_app()`
use_shiny_run_app_addin()  # create an addin to trigger run_app() with a keyboard shortcut
maurolepore commented 3 years ago

Maybe extract into the package useshiny

maurolepore commented 3 years ago

use_shiny_autoreload() # https://github.com/sol-eng/background-jobs/tree/master/shiny-job