Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.4 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.4 KB

directoryr

Travis build status Coverage status lifecycle

Lightweight package to manage Shiny Server with app.yaml and simplify continuous integration pipelines.

Create /srv/shiny-server/app.yaml

testpkg:
 - App1
 - App2
sabbatical:
 - app
extrapkg:
  shiny-apps:
   - App1
   - App2

Run build_dirs()

In R:

directoryr::build_dirs()

In Travis CI:

- Rscript -e 'directoryr::build_dirs()'

build_dirs() creates directories based on app.yaml and creates an app.R file for each app:

app.R

shiny::shinyAppDir(system.file(package = "sabbatical", "app"))

If you install the sabbatical package on the server, this will launch the app from the sabbatical package on Shiny Server.

build_dirs() also cleans up after itself. So if you edit app.yaml, it will remove unused directories as well.

Contributor Code of Conduct

Please note that the directoryr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.