assemble_draft {heddlr} | R Documentation |
Deprecated function for draft import
Description
assemble_draft has been deprecated (as of development version 0.4.2) in favor of import_draft, which has the same semantics (and is actually now the same code – assemble_draft is now only an alias for import_draft.) This should hopefully make the link between import_draft and import_pattern clear, and more importantly distinguish these functions from extract_pattern and the new extract_draft function.
Usage
assemble_draft(...)
Arguments
... |
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. |
Value
Returns a list (the same length as ...) containing the imported patterns.
Examples
pattern_file <- tempfile("out", tempdir(), ".Rmd")
export_template("my sample pattern", pattern_file)
assemble_draft("sample_pattern" = pattern_file)
[Package heddlr version 0.6.0 Index]