getPathTemplate: Get path of template clinical data report

View source: R/reporting-templates.R

getPathTemplateR Documentation

Get path of template clinical data report

Description

Get path of template clinical data report

Usage

getPathTemplate(file, package = "clinDataReview")

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.

Value

String with path to the template in the installed clinDataReview package

Author(s)

Laure Cougnaud

Examples

## Not run: 
pathDivisionTemplate <- getPathTemplate("divisionTemplate.Rmd") # get path template in the package
file.copy(from = pathDivisionTemplate, to = ".") # copy to current directlory
rmarkdown::render(pathDivisionTemplate) # run file 

## End(Not run)

clinDataReview documentation built on March 7, 2023, 5:13 p.m.