assemble_draft: Deprecated function for draft import

Description Usage Arguments Value Examples

View source: R/import_draft.R

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

1

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

1
2
3
pattern_file <- tempfile("out", tempdir(), ".Rmd")
export_template("my sample pattern", pattern_file)
assemble_draft("sample_pattern" = pattern_file)

heddlr documentation built on March 24, 2020, 9:07 a.m.