View source: R/use_rstudio_keyboard_shortcut.R
| use_rstudio_keyboard_shortcut | R Documentation |
This function updates the RStudio keyboard shortcuts saved in
the addins.json file.
use_rstudio_keyboard_shortcut(..., .write_json = TRUE, .backup = TRUE)
... |
series of RStudio keyboard shortcuts to update. The argument
name is the keyboard shortcut, and the value is a string of the function
name that will execute, or |
.write_json |
logical indicating whether to update and overwrite
the existing JSON file of options. Default is |
.backup |
logical indicating whether to create a back-up of shortcuts
file before it's updated. Default is |
When .write_json = FALSE, a named list of all shortcuts including
the updates. Otherwise NULL invisibly.
Daniel D. Sjoberg
# Add a shortcut
use_rstudio_keyboard_shortcut(
"Ctrl+Shift+/" = "rstudio.prefs::make_path_norm"
)
# Remove a shortcut
use_rstudio_keyboard_shortcut(
"Ctrl+Shift+/" = NULL
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.