render_fda_define | R Documentation |
Render a define.pdf document conforming to FDA standards
render_fda_define(x, ...)
## S3 method for class 'yproj'
render_fda_define(
x,
stem = "define",
title = "Data Definitions",
date = as.character(Sys.Date()),
author = "",
format = "fda_define",
output_dir = getwd(),
build_dir = definetemplate(),
ext = ".xpt",
loc = ".",
sponsor = NULL,
projectnumber = NULL,
...
)
## S3 method for class 'character'
render_fda_define(x, ..., dots = list())
## S3 method for class 'yspec'
render_fda_define(x, ..., dots = list())
x |
a yaml specification file name or a yproj object |
... |
passed to |
stem |
used to name the output document |
title |
a title for the document |
date |
the document date |
author |
the document author |
format |
function to generate the define text |
output_dir |
The output directory for the rendered |
build_dir |
directory where the document is to be built |
ext |
data set file extension to include; this should only be changed from default value of ".xpt" for testing purposes |
loc |
location to use for data set files; this should only be changed from default value of "." for testing purposes |
sponsor |
optional project sponsor |
projectnumber |
optional project number in |
dots |
named list of arguments passed to object converter function |
For all document types, the following latex
packages are required:
array
longtable
booktabs
fontenc
mathdesign
Make sure these packages are installed and available when trying to render a document.
proj_file <- file_proj_ex()
proj_file
## Not run:
render_fda_define(proj_file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.