R/compiler.R

.compiler <- function(target) {
    if (!file.exists(paste0(target, "_cache"))) {
        rcmd <- file.path(R.home("bin"), "R")
        system2(rcmd, c("--no-save", "--slave", "-e", sprintf("'rmarkdown::render(\"%s\")'", paste0(target, ".Rmd"))))
    }
    invisible(NULL)
}
LTLA/BiocWorkCache documentation built on May 10, 2019, 1:21 p.m.