Create new article from existing template

use_article_template(
  template,
  slug,
  date = NULL,
  collection = "posts",
  slug_replace = "INSERT-SLUG-HERE",
  date_replace = "INSERT-DATE-HERE",
  renv_new = TRUE,
  open = interactive()
)

Arguments

template

Path to template file

slug

Semantic slug for the article (in-kebab-case)

date

Date for the article (in YYYY-MM-DD)

collection

Collection to contain the article (default = "posts")

slug_replace

Pattern to be replaced with slug

date_replace

Pattern to be replaced with date

renv_new

Initialise a new R environment?

open

Open the article in RStudio?

Value

???