Description Usage Arguments Value See Also Examples
View source: R/import_pattern.R
Longer, multi-chunk patterns can benefit from being developed in files independent of the rest of a draft. This is a quick wrapper function to import those patterns as objects for assembly into a draft.
1 | import_pattern(filepath)
|
filepath |
A valid character string to the plaintext file containing the pattern. |
A character string, typically used to assemble a draft.
Other import functions:
extract_draft()
,
extract_pattern()
,
import_draft()
1 2 3 | pattern_file <- tempfile("out", tempdir(), ".Rmd")
export_template("my sample pattern", pattern_file)
import_pattern(pattern_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.