knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
People are saying that if you are repeating a code more than twice, then make a function for it. The idea of dplyrshortcut
is that if you are using a function more than twice, then use a keyboard shortcut.
You can install the development version of dplyrshortcut
with the devtools package.
# install.packages("devtools") devtools::install_github("damien-dupre/dplyrshortcut")
dplyrshortcut
add functions in RStudio IDE's Addins section.
knitr::include_graphics("img/img_01.png")
Then, in order to add the shortcut to your keyboard, use the Rstudio IDE: Tools>Modify Keyboard Shortcuts... and associate the keyboard shortcut you prefer, such as:
and modify Insert Pipe Operator with Ctrl+Shift+P.
knitr::include_graphics("img/img_02.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.