View source: R/spec_accessors.R
| spec_documents | R Documentation |
Return the document references a specification carries. Methods and
comments point to these by document_id.
spec_documents(spec)
spec |
The specification to read. |
A data frame of document metadata (document_id, title,
href), one row per document. Empty when the spec defines none.
spec_methods(), spec_comments(), validate_spec().
# ---- Example 1: the documents a spec defines ----
#
# Build a spec with one document reference and read it back.
spec <- artoo_spec(
data.frame(dataset = "ADSL"),
data.frame(dataset = "ADSL", variable = "AGE", data_type = "integer"),
documents = data.frame(
document_id = "SAP",
title = "Statistical Analysis Plan",
stringsAsFactors = FALSE
)
)
spec_documents(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.