I can create a default script template as outline here. Specifically, I place my template file, called default.R
, in the ~/.config/rstudio/templates/
directory and all new files adopt that structure. Great!
My question is, can I create multiple templates that I can choose from? I'm thinking of something like when I create an RMarkdown file and I'm given several options to select from. I have already tried placing additional templates in ~/.config/rstudio/templates/
, but RStudio just uses the default template instead.
I know there was a discussion about this a few years ago, but as the UI functionality wasn't there yet, it wasn't implemented. Has anything changed in that regard?