mrc-ide / naomi

Naomi model for subnational HIV estimation
https://mrc-ide.github.io/naomi
Other
9 stars 9 forks source link

Naomi

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check Codecov test coverage

Naomi model for subnational HIV estimates

Installation

The package is not available from CRAN. Instead, install the compiled version from the mrc-ide universe.

install.packages("naomi", repos = "https://mrc-ide.r-universe.dev")

Install from GitHub to install from source.

# install.packages("devtools") # Uncomment this line if devtools is not yet installed
devtools::install_github("mrc-ide/naomi")

Development steps

Code coverage

To check code coverage from R.

cov <- covr::package_coverage()
covr::report(cov)

Website

A pkgdown website is available for the package. To update the website using most recent docs and vignettes type make website on the command line from the root directory. Note that to see the effects in place immediately you may need to refresh the browser cache by opening developer console and right click refresh button -> Empty Cache and Hard Reload.

Generating test data

Run ./scripts/build_test_data to run the model and output the fit data. This will speed up some tests and stop the model fitting and uncertainty calculations being done every time. This data is not on Github as it is quite large ~ 220MB for Malawi.