use_article_template: Create new article from existing template

Description Usage Arguments Value

View source: R/template.R

Description

Create new article from existing template

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

???


djnavarro/refinery documentation built on Dec. 20, 2021, 12:05 a.m.