R/update_helper.R

Defines functions update_helper

update_helper <- function(web_tag, rmd_tag, web_tab, path, bulleted = FALSE, header = '') {
    if(web_tag %in% web_tab$tag) {
        update_text <- paste0(if(bulleted) '* ', web_tab$value[web_tab$tag == web_tag], collapse = '\n')
        update_text <- paste0(header, update_text)
    } else {
        update_text <- ''
    }
    update_template(path, rmd_tag, update_text)
}
ComunidadBioInfo/easyweb documentation built on Oct. 30, 2019, 5:44 a.m.