Set Rstudio keyboard bindings as mapped on https://github.com/brry/rskey#rskey. By default, this overwrites existing F3:F12 mappings!
setKeyboardBindings(
overwrite = TRUE,
removeLastYank = TRUE,
workdir2filedir = TRUE,
roampath = paste0(Sys.getenv("APPDATA"), "/RStudio/keybindings"),
openfolder = TRUE
)
Returns nothing
Logical. Should existing mappings on F3, F4, ..., F12 be overwritten? Still informs if this occurs. DEFAULT: TRUE
Logical. Should the annoying Rstudio default to override "Redo" (CTRL+Y) with some weird yank be removed? DEFAULT: TRUE (CTRL+Y becomes "Redo" again)
Logical. Set CTRL+H for setWorkingDirToActiveDoc? DEFAULT: TRUE
Char. If not NULL, both files are also copied to this path,
e.g. C:/Users/berry/AppData/Roaming/RStudio/keybindings.
Seems to be irrelevant in Rstudio 1.4.
DEFAULT: RStudio/keybindings folder at Sys.getenv("APPDATA")
Logical: Open folder(s) after writing the files?
Uses berryFunctionsopenFile()
. DEFAULT: TRUE
Berry Boessenkool, berry-b@gmx.de, Jan 2019
addins