render_spec is an alias to render_define. See details.
render_define(x, ...)
# S3 method for class 'yproj'
render_define(
x,
stem = "define_working",
format = "x_table_2",
output_format = "pdf_document",
output_dir = getwd(),
build_dir = definetemplate(),
title = "Data Specification",
author = "",
toc = "yes",
number_sections = "yes",
rmd_template = NULL,
date = as.character(Sys.Date()),
sponsor = NULL,
projectnumber = NULL,
...
)
# S3 method for class 'character'
render_define(x, ..., dots = list())
# S3 method for class 'yspec'
render_define(...)
render_spec(x, ...)
# S3 method for class 'character'
render_spec(x, stem = basename(x), ..., dots = list())
# S3 method for class 'yspec'
render_spec(x, stem = get_meta(x)[["name"]], ..., dots = list())a yproj object or project specification file name
passed to rmarkdown::render()
used to name the output file
the name of a function that will generate code formatting the data specification information
passed to rmarkdown::render()
passed to rmarkdown::render()
directory where rmarkdown should build the
document
used in yaml front matter
used in yaml front matter
used in yaml front matter
used in yaml front matter
full path to rmarkdown file to be used to template the data specification document
used in yaml front matter
optional project sponsor
optional project number in ...
passed to object converter
stem should not include a file extension, just
the file stem.
For all document types, the following latex packages are required:
array
longtable
booktabs
fontenc
Make sure these packages are installed and available when trying to render a document.
file <- ys_help$file()
file
#> [1] "/tmp/RtmpJ2uGS6/temp_libpath2b47670e342a/yspec/internal/analysis1.yml"
if (FALSE) { # \dontrun{
render_define(file)
} # }