# NOT RUN {
# super simple partial example
partial(text = "Test")
# an example of a wrapper function that calls partial with an argument
# ensures distinct paths for cache and figures, so that these calls can be looped in parallel
regression_diagnostics <- function(regression, ...) {
partial(system.file("_regression_diagnostics.Rmd",
package = "rmdpartials", mustWork = TRUE),
regression = regression, ...)
}
# }
Run the code above in your browser using DataLab