You can install the development version of YoloHealthApp from Github using the following R commands:
if (!require(remotes)) install.packages("remotes")
remotes::install_github("Data-Visualization-for-Family-Health/YoloHealthApp")
You can then launch the app as follows:
YoloHealthApp::runApp()
YoloHealthApp first needs to be installed using the above instructions. This will install all R dependencies needed for the app as well as the necessary data.
The site_dir
variable of the Shiny server should then be set to
YoloHealthApp/app
under the system’s R library folder where
YoloHealthApp is located. The location of the system R library can be
found using the .libPaths()
R command.
Alternatively, using the default value of site_dir
, the inst/app
folder of this repository can be copied to /srv/shiny-server/
. The
application at /srv/shiny-server/app
would then be available at
http://myserver.org:3838/app
Contains the Rscript runApp.R which allows you to run the app with the simple command
YoloHealthApp::runApp()
Contains app.R with the R code of the shiny app (UI and server) Contains providers.R as a source file that cleans the data Contains a data folder
Contains downloads.R which downloads data from the census API to make deployment of the app quicker It will need to be updated annually to ensure accuracy. Only needs to be run when the census data changes for updates.
Contains the data saved after running the file downloads.R