Does RStudio support any automated roxygen template creation?
In Emacs-ESS, C-x C-o
will produce an roxygen template for a function. For example, it will automagically convert this:
foo <- function(x,y) x+y
into this:
##' .. content for \description{} (no empty lines) ..
##'
##' .. content for \details{} ..
##' @title
##' @param x
##' @param y
##' @return
##' @author David
foo <- function(x,y) x+y
Does similar functionality exist within RStudio?
updates
- as of ESS 12.09-2, the command has been changed to
C-c C-o C-o
- this feature has been implemented in Rstudio: CTRL+ALT+SHIFT+R
C-c C-o C-o
. It's also available from the EMACS menu bar viaESS
-->Roxygen
-->Update/Generate Template
. – ChamplainCTRL+ALT+SHIFT+R
; from https://mcmap.net/q/390992/-keyboard-shortcut-for-inserting-roxygen-39-comment-start – Virendra