- Each Shiny app is stored within a top-level directory (
pubbias/
,phacking/
) under anapp/
directory. - The copy for an app's text and tooltips can be edited in the files in its
docs/
directory. - There is some shared content for all the apps (
setup.R
andstyles.css
). These base files are in the top-level_shared/
directory. The script_update_shared.R
copies the files from there to each app'swww/_shared/
directory (because all files need to be within an app's directory for deployment). Each app'sglobal.R
callssetup.R
, and each app'sui.R
includesstyles.css
. - There is one shared
renv
environment andrenv.lock
file for all the apps. The dependencies on metabias packages need to be to their development versions on GitHub because of bug fixes since their release (PublicationBias and phacking).
- Any commit message with the string
deploy pubbias
ordeploy hacking
will trigger the deployment of the pubbias or phacking app, respectively. - This deployment is done by the GitHub action
deploy-apps.yaml
, which in turn uses the actiondeploy-single-app.yaml
to deploy a single app (this is so that the name of the app is parametrized and the workflow for deployment a single app doesn't have to be duplicated for each app. - The deployment uses the
rsconnect
package to deploy the app to theqsu-stanford
account on shinyapps.io. For a different account to work for this, an account token for it needs to be generated on shinyapps.io and then added to this repository's secrets (more info here). - If an app is having performance issues, there are many scaling settings in shinyapps.io that can be reconfigured.