Reputation: 2311
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
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