forceParams: Force the evaluation of the parameters from config file.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/reporting-render_clinDataReviewReport.R

Description

This function is only useful if some parameters should be lazy-evaluated in the report. These parameters should have the class: r-lazy. A typical use case is a parameter that consists of a R expression depending on objects created in a template report (typically data).
Parameters are searched in the environment in which this function is called from.

Usage

1
forceParams(params)

Arguments

params

List of parameters as obtained via the getParamsFromConfig function.

Value

Input parameter list, with object(s) of class r-lazy evaluated.

Author(s)

Laure Cougnaud

See Also

getParamsFromConfig

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

Examples

1
2
3
4
data <- mtcars
params <- list(label = "Cars dataset", nrow = structure("nrow(data)", class = "r-lazy"))
str(params)
str(forceParams(params))

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