requireNamespace("knitr")Datsun 710
This file has been generated by the following steps:
- The script generate-cars.R(Quarto pre-render script) loops through rows ofmtcarsdata frame and renders a whisker (de Jonge 2019) templatetemplate.whiskerinto aqmdfile (Quarto source) in thecarsfolder.
- Those qmdfiles are rendered by Quarto normally.
dat <- mtcars[params$rowid , , drop = FALSE]This is a report for Datsun 710. The data are:
knitr::kable(dat)| mpg | cyl | disp | hp | drat | wt | qsec | vs | am | gear | carb | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Datsun 710 | 22.8 | 4 | 108 | 93 | 3.85 | 2.32 | 18.61 | 1 | 1 | 4 | 1 | 
References
de Jonge, Edwin. 2019. Whisker: mustache for r, Logicless Templating. https://CRAN.R-project.org/package=whisker.