Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

r

r-markdown

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.

like image 287
Freguglia Avatar asked Jan 19 '26 04:01

Freguglia


1 Answers

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.

like image 75
Gregor Thomas Avatar answered Jan 21 '26 20:01

Gregor Thomas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!