dir.create(paste0(here::here(), "/reports/sims/"), recursive = TRUE)
#......................
# get results assuming "seroinfinity"
#......................
paths <- list.files("results/SimCurves_noserorev/", full.names = TRUE)
#......................
# render
#......................
renderMyDocument <- function(path) {
simchar <- stringr::str_split(basename(path), "_", simplify = T)[[1]]
rmarkdown::render("reports/Sim_report_base.Rmd",
params = list( path = path ),
output_file = paste0(here::here(), "/reports/sims/", simchar, "_NoSeroRev_report.pdf"))
}
lapply(paths, renderMyDocument)
#......................
# get results assuming seroreversion
#......................
paths <- list.files("results/SimCurves_serorev/", full.names = TRUE)
#......................
# render
#......................
renderMyDocument <- function(path) {
simchar <- stringr::str_split(basename(path), "_", simplify = T)[[1]]
rmarkdown::render("reports/Sim_report_base.Rmd",
params = list( path = path ),
output_file = paste0(here::here(), "/reports/sims/", simchar, "_SeroRev_report.pdf"))
}
lapply(paths, renderMyDocument)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.