--- title: "Current database" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Current database} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r echo = FALSE} library("DT") library("epiparameterDB") tbl <- lapply(epiparameterDB::epiparameterDB, function(x) { data.frame( disease = x$disease, pathogen = x$pathogen, epi_name = x$epi_name, citation_info = paste0( epiparameterDB:::.cite_author(x), # nolint undesirable_operator_linter "(", x$citation$year, ")", ", DOI: ", "", x$citation$doi, "" ) ) }) tb <- do.call(rbind, tbl) ## sort by disease then pathogen tb <- tb[order(tb$disease, tb$pathogen), ] datatable( tb, rownames = FALSE, colnames = c("Disease", "Pathogen", "Distribution", "Reference"), escape = FALSE, options = list(pageLength = 50) ) ```