View source: R/reporting-templates.R
getPathTemplate | R Documentation |
Get path of template clinical data report
getPathTemplate(file, package = "clinDataReview")
file |
String with name of the template Rmd document |
package |
String, which package the template should be extracted from,
by default the |
String with path to the template in the installed clinDataReview
package
Laure Cougnaud
pathDivisionTemplate <- getPathTemplate("divisionTemplate.Rmd") # get path template in the package
tmp <- file.copy(from = pathDivisionTemplate, to = tempdir()) # copy to temporary dir (for example)
params <- list(reportTitle = "Adverse events")
rmarkdown::render(file.path(tempdir(), basename(pathDivisionTemplate))) # run file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.