doc_new: Create New Document

Description Usage Arguments Examples

View source: R/ggplot2_themes.R

Description

Creates a new R Markdown document of the requested type. There are currently three templates, one for reports where the default is HTML based on the HTML vignette template, and another with a Moffitt-styled xaringan theme. In all cases, the document and supporting files are added to a directory with the name given by the file.

Usage

1
doc_new(path, type = c("doc", "slides"))

Arguments

path

Path to the location of the new document

type

Type of document to create

Examples

1
2
3
4
5
## Not run: 
doc_new("my_report.Rmd", "doc")
doc_new("my_slides.Rmd", "slides")

## End(Not run)

GerkeLab/grkmisc documentation built on Feb. 23, 2020, 6:50 a.m.