Learn R Programming

clinDataReview (version 1.6.2)

forceParams: 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)

Value

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

evaluated.

Arguments

params

List of parameters as obtained via the getParamsFromConfig function.

Author

Laure Cougnaud

See Also

getParamsFromConfig

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

Examples

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

Run the code above in your browser using DataLab