Create an R Journal article with the existing template

create_article(
  name,
  file = xfun::with_ext(name, "Rmd"),
  create_dir = FALSE,
  edit = TRUE
)

Arguments

name

the name of the Rmd

file

File name for the draft

create_dir

TRUE to create a new directory for the document (the "default" setting leaves this behavior up to the creator of the template).

edit

TRUE to edit the template immediately

Value

a created R Journal template in the directory specified by dir_path

Details

See vignette("create_article", package = "rjtools") for how to create an article