getParamsFromConfig: Get parameters from a config file

Description Usage Arguments Value Author(s) See Also

View source: R/reporting-render_clinDataReviewReport.R

Description

Please note that the information from this config file and the general config file: config.yml are considered.
In case parameters are defined both in the general and specific config files, the parameter from the general config file is ignored.

Usage

1
2
3
4
5
getParamsFromConfig(
  configFile,
  configDir = file.path(inputDir, "config"),
  inputDir = "."
)

Arguments

configFile

String with filename of the config file of interest in YAML format.

configDir

String with directory with config files, by default a 'config' folder in inputDir.
It should contain a general 'config.yml' file and dedicated 'config-[X].yml' for each chapter. The order of each chapter is specified in the 'config' slot in the general general 'config.yml'.

inputDir

String with input directory, working directory by default.

Value

List with parameters from the specified configFile and the general config file: config.yml.
There are two specific handlers:

Parameters with YAML type 'r-lazy' are imported as character, with this additional class.

Author(s)

Laure Cougnaud

See Also

forceParams

Other clinical data reporting: checkReportTitles(), convertMdToHtml(), forceParams(), getMdHeader(), gitbook_clinDataReview_report(), html_clinDataReview_report(), knitPrintClinDataReview(), render_clinDataReviewReport()


clinDataReview documentation built on July 14, 2021, 5:08 p.m.