Lightweight package to manage Shiny Server with app.yaml and simplify continuous integration pipelines.
testpkg:
- App1
- App2
sabbatical:
- app
extrapkg:
shiny-apps:
- App1
- App2
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:
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.
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.