Allows configuration of RStudio to insert the dplyr pipe (%>%) at the current cursor position
The %>% pipe form the dplyr package is a very useful tool to create human-readable and reproducible code. Configuring it to a keyboard shortcut saves me significant time during coding. I'm uploading it to GitHub in case anybody else finds it useful.
Download the package and install with
install.packages("DOWNLOAD_FOLDER/insertPipe", repos = NULL, type="source")
or alternatively directly
install.packages("devtools") library(devtools) install_github("ASBecker/insertPipe")
then map it to a shortcut in RStudio.
Thanks to Hadley Wickham for his endless contributions to the R community
CC BY 4.0