After writing data specification details in yaml format, read in as an object in R, query data set details, check / validate data sets, and write out data definition documents. To get started, check out the vignettes.
Workflow
Write your document in yaml format
Use
ys_load()to read in the yaml fileUse the
.verboseto see more information while this is in progress
Once the
specobject is loadedspec$colto see the definition ofcolsummary(spec)to see a summaryyspec_add_factors()to create factors in the data set
Use
ys_check()to check a data frame against the specUse
ys_document()to render the specification object as a pdf fileUse
ys_project()to create a collection of individual data specification objects; this also can be rendered as a pdf file withys_document()Get help: Use ys_help to get further help and documentation in your R session
Package-wide options
ys.sanitizea function to use for sanitizing text before processing with latex; seepander_table()ys.fct.suffixthe suffix to add to a column name, used byyspec_add_factors()ys.require.labelifTRUE, an error will be generated whenever a column is specified without a label
NOTE: ys.col.len was an available in previous versions to set the
maximum number of characters allowable in a column name. This options has
been deprecated. Please use max_char_col in SETUP__: instead.
Author
Maintainer: Kyle T Baron kyleb@metrumrg.com (ORCID)
Other contributors:
Katherine Kay katherinek@metrumrg.com [contributor]
Eric Anderson andersone@metrumrg.com [contributor]
Sean Wilson copernican@gmail.com [contributor]
Samuel Callisto samc@metrumrg.com [contributor]
Metrum Research Group [copyright holder]
