set_keyboard_shortcuts: Set keyboard shortcuts

Description Usage Arguments Examples

Description

Manipulated the JSON file to make the suggested keyboard shortcuts. Need to close and re-open RStudio (or start a new session) for them to take effect.

Usage

1
2
3
set_shortcuts(addins, shortcuts, file = "addins")

set_shortcuts_default()

Arguments

addins

Characer vector of underlying functions for addins. Need to be in the right form (e.g. "RADins::copy_file_path").

shortcuts

Characer vector of keyboard shortcuts for addins. Need to be in the right form (e.g. "Ctrl+Shift+V").

file

The name of the JSON file in the file path “~/.R/rstudio/keybindings/” you would like to change. This will be either "addins", "editor_bindings" or "rstudio_bindings" (partial matching permitted).

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
#This is an example of changing shortcut thats helpful as it
# removes pasteLastYank as a shortcut that overwites
# Ctrl+Y for redo. This will fix frustrating default behaviour
# of RStudio.

set_shortcuts("pasteLastYank","Ctrl+Shift+Y","rstudio_bindings")

## End(Not run)

t-gummer/RADins documentation built on Sept. 14, 2020, 7:58 p.m.