This repository contains R code to generate M&A summary reports using EIDITH data.
To use, clone this repository and set it as your working directory. (You may open the predict-ma-reports.Rproj file if you use RStudio.)
First run devtools::install_deps(upgrade = "always") in R to get all packages required to run this code and ensure that they are up to date. These packages are listed in the DESCRIPTION file. You should in general keep up to date with the latest version of the eidith package, which tracks changes made upstream in the EIDITH database.
Run 00-get-data.R
Run scripts/generate_viral_species_lookups.R
.
Run scripts/generate_mammal_country_lookup.R
.
data/iucn_to_hp3_taxonomic_harmonization.csv
to reconcile IUCN and HP3 species names.Modify report-template.Rmd
however you like.
Run make.R
to generate the reports (from report-template.Rmd
). Specify your countries.
Output reports are saved to the outputs/
folder.
*.encrypted
, dropbox_upload.R
, and .gitlab-ci.yml
files are specific to EcoHealth Alliance's automated pipeline infrastructure and require EHA encryption keys to use.