VFreguglia
VFreguglia

Reputation: 2311

Rmarkdown: Is there a function to create .Rmd documents?

When using Rstudio, one can use File -> New File -> R markdown... to create a new R markdown file from a template, with YAML headers and some examples already buffered. Is there a function to replicate this without an IDE (in this case, saving the template Rstudio would buffer in a new file)?

I'd rather start my .Rmd file from template rather than from scratch, but not using an IDE.

Upvotes: 3

Views: 287

Answers (1)

Gregor Thomas
Gregor Thomas

Reputation: 145745

rmarkdown::draft seems to do what you want. It creates a new file, based on a template. You can provide a link to a custom template. See the help page for details.

Upvotes: 5

Related Questions