create_article: Create a new article

View source: R/create.R

create_articleR Documentation

Create a new article

Description

Create (and optionally edit) a new distill article.

Usage

create_article(
  file,
  template = "distill_article",
  package = "distill",
  create_dir = FALSE,
  edit = TRUE
)

Arguments

file

File name for the draft

template

Template to use as the basis for the draft. This is either the full path to a template directory or the name of a template directory within the rmarkdown/templates directory of a package.

package

(Optional) Name of package where the template is located.

create_dir

TRUE to create a new directory for the document (defaults to FALSE).

edit

TRUE to edit the template immediately


distill documentation built on Oct. 6, 2023, 5:06 p.m.