This is just a small hack for those who use self-defined functions often.
Type "fun" RStudio IDE and hit TAB.
The result will be a skeleton of a new function.
name <- function(variables) {
}
One can easily define their own snippet template, i.e. like the one below
name <- function(df, x, y) {
require(tidyverse)
out <-
return(out)
}
The option is Edit Snippets
in the Global Options -> Code
menu.