rmd_skeleton: RMarkdown Skeleton

View source: R/rmd.R

rmd_skeletonR Documentation

RMarkdown Skeleton

Description

This function creates an RMarkdown skeleton with pretty defaults.

Usage

rmd_skeleton(
  name = "Untitled",
  dir = here(),
  title = NULL,
  author = "Daniel Molitor",
  abstract = FALSE
)

Arguments

name

A string - the name of the RMarkdown document.

dir

The target directory.

title

The title of the RMarkdown document. Optional argument.

author

The author of the RMarkdown document. Optional argument.

abstract

A logical value - whether to include an Abstract section.

Value

Returns the file path invisibly. It is called for its side effects.

Examples

target_dir <- tempdir()
rmd_skeleton(name = "test",
             dir = target_dir,
             title = "Test Document")


dmolitor/dmolitorUtils documentation built on Sept. 24, 2022, 6 a.m.