This function is a wrapper around render_define()
and render_fda_define()
.
ys_document(x, type = c("working", "regulatory"), ...)
a spec or project object
the document type
passed to render_define()
or render_fda_define()
; it is important
to review these help topics to see what other aspects of the document
can be specified; see also details
here.
Select type
of "working` for a working document that contains more
information in a less-compact layout. This is a good format for a modeling
and simulation scientist to use day-to-day and for sharing with a sponsor
to review.
Select type
of "regulatory" for a define document that conforms to
submission requirements set by regulatory authorities (e.g. FDA).
Note that x
is usually either a yspec
object or a yproj
object.
You can also pass in the full path to a specification document and
yspec will guess which format it is and render accordingly.
Because ...
are passed to render_define()
and render_fda_define()
,
it is important to review arguments to those functions as well. Specifically,
please note that the document title, author, and date can
be set, along with the name of the output document, the working document
build directory, and several other aspects of the document can be set
in the call to ys_document.
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.
if (FALSE) { # \dontrun{
ys_document(ys_help$spec())
ys_document(ys_help$spec(), type = "regulatory")
} # }