Create an R Journal article with the existing template

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

Arguments

name

the name of the Rmd, will default to "test"

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

Details

Outputs an R Journal paper template set of files in the directory specified by dir_path or in the project directory, if nothing is specified. See vignette("create_article", package = "rjtools") for more details on how to create and format an article.