View source: R/template_ci_heatmap_and_coded_fragments_to_pdf.R
template_ci_heatmap_1_to_pdf | R Documentation |
Use this function to export a templated report for cognitive interviews. To embed it in an R Markdown file, use !!! CREATE rock::knit_codebook() !!!
template_ci_heatmap_1_to_pdf(
x,
file,
title = "Cognitive Interview: Heatmap and Coded Fragments",
author = NULL,
caption = "Heatmap",
headingLevel = 1,
silent = rock::opts$get("silent")
)
x |
The codebook object (as produced by a call to
|
file |
The filename to save the codebook to. |
title |
The title to use. |
author |
The author to specify in the PDF. |
caption |
The caption for the heatmap. |
headingLevel |
The level of the top-most headings. |
silent |
Whether to be silent or chatty. |
x, invisibly
### Use a temporary file to write to
tmpFile <- tempfile(fileext = ".pdf");
### Load an example CI
examplePath <- file.path(system.file(package="rock"), 'extdata');
parsedCI <- parse_source(file.path(examplePath,
"ci_example_1.rock"));
rock::template_ci_heatmap_1_to_pdf(
parsedCI,
file = tmpFile
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.