README.md

comoexplore

This is a shiny app accompanied with the R package comomodels to interactively explore the model behaviors of in response to different transmission parameters.

Currently we support five sub-models:

Development

To contribute to this repository, please read DEVELOPMENT.md

How to run the app

Run the deployed app online

Click here to easily explore comomodels-explore online.

Run the app locally (linux)

In addition to the online version, comomodels-explore is also open accessible and can be run locally.

Dependencies

Installations

# 1. use runGitHub
shiny::runGitHub("comomodels-explore", "Como-DTC-Collaboration", ref = "main")

# 2. alternatively, run a tar or zip file
shiny::runUrl("https://github.com/Como-DTC-Collaboration/comomodels-explore/archive/main.tar.gz")
shiny::runUrl("https://github.com/Como-DTC-Collaboration/comomodels-explore/archive/main.zip")
git clone git@github.com:Como-DTC-Collaboration/comomodels-explore.git
cd comomodels-explore/

# start an R environment
R

In the R environment, make sure your working directory is comomodels-explore and all dependencies are installed. Then run the app

setwd(".")
## if you are using an interactive R session (e.g. RStudio):
shiny::runApp(appDir = ".")
## otherwise, set `launch.browser=FALSE` and manually launch the browser in the next step:
shiny::runApp(appDir = ".", launch.browser=FALSE)

Either way, a local URL will appear on your R console, e.g.:

Listening on http://127.0.0.1:5554

The corresponding interface may automatically pop out. If not, you can manually copy-and-paste the above URL to any web server.

You can now play around with the parameters on the interface.



Como-DTC-Collaboration/comomodels-explore documentation built on Jan. 20, 2022, 4:49 p.m.