Description Usage Arguments Value See Also Examples
When working with multiple patterns that will be woven into a template,
it makes sense to have all patterns stored in a central object. This
function creates that object from a named vector of filenames to be used
in further generation, importing the files via
import_pattern
.
1 |
... |
A named vector of filenames which will be imported as patterns stored in the returned draft, with the names used as indices. Files should be plain text. |
Returns a list (the same length as ...) containing the imported patterns.
Other import functions:
extract_draft()
,
extract_pattern()
,
import_pattern()
1 2 3 | pattern_file <- tempfile("out", tempdir(), ".Rmd")
export_template("my sample pattern", pattern_file)
import_draft("sample_pattern" = pattern_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.