forceParams {clinDataReview} | R 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 |
Value
Input parameter list, with
object(s) of class r-lazy
evaluated.
Author(s)
Laure Cougnaud
See Also
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))
[Package clinDataReview version 1.6.1 Index]