Learn R Programming

clinDataReview (version 1.6.2)

getPathTemplate: Get path of template clinical data report

Description

Get path of template clinical data report

Usage

getPathTemplate(file, package = "clinDataReview")

Value

String with path to the template in the installed clinDataReview

package

Arguments

file

String with name of the template Rmd document

package

String, which package the template should be extracted from, by default the clinDataReview package.

Author

Laure Cougnaud

Examples

Run this code
# \donttest{
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 
# }

Run the code above in your browser using DataLab