View source: R/codebook_to_pdf.R
codebook_to_pdf | R Documentation |
Use this function to export your codebook specification to a PDF file. To embed it in an R Markdown file, use !!! CREATE rock::knit_codebook() !!!
codebook_to_pdf(
x,
file,
author = NULL,
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. |
author |
The author to specify in the PDF. |
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 (pre)registration specification
data("exampleCodebook_1", package = "rock");
rock::codebook_to_pdf(
exampleCodebook_1,
file = tmpFile
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.