create_article: Create an R Journal article with the existing template

View source: R/rjournal_article.R

create_articleR Documentation

Create an R Journal article with the existing template

Description

Create an R Journal article with the existing template

Usage

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.


rjtools documentation built on May 29, 2024, 9:57 a.m.