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.
doc_new(path, type = c("doc", "slides"))
path | Path to the location of the new document |
---|---|
type | Type of document to create |
if (FALSE) { doc_new("my_report.Rmd", "doc") doc_new("my_slides.Rmd", "slides") }