Introduction to TB Models
A shiny app reproducing the models used in the Introduction to Tuberculosis modelling course practicals, run by TB MAC at the 2017 Union conference. See the TB MAC website for course materials and further resources. The models used in this course, and reproduced in this shiny app, were based on one published by Lin et al.
Installing the shiny app locally
To install and run the shiny app locally on your own computer you will need to first install R, it is also suggested that you install Rstudio. After downloading the source code from this repository click on the
intro_to_tb_models.Rprof file, this will open an Rstudio window. Type the following code into the command line;
install.packages("shiny") install.packages("shinydashboard") install.packages("DT") install.packages("ggplot2") install.packages("tidyr") install.packages("dplyr") install.packages("tibble") install.packages("rmarkdown") install.packages("plotly")
To run the app open the
ui.R file and press run, depending on your computer this may take some time.
docker pull seabbs/intro_to_tb_models docker run --rm -p 3838:3838 seabbs/intro_to_tb_models
The shiny app can be found on port
:3838 at your local machines ip (or localhost on windows).