R Language Writing functions in R RStudio code snippets


This is just a small hack for those who use self-defined functions often.
Type "fun" RStudio IDE and hit TAB.

enter image description here

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) {
        out <- 

The option is Edit Snippets in the Global Options -> Code menu.