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

View source: R/reporting-render-params.R

forceParamsR Documentation

Force the evaluation of the parameters from config file.

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

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(), getMdHeader(), getParamsFromConfig(), gitbook_clinDataReview_report(), html_clinDataReview_report(), knitPrintClinDataReview(), postProcessReport(), render_clinDataReviewReport()

Examples

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

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