@kevinushey, @jonathan i wrote a package to overcome this issue and uploaded it to CRAN, but got an email that CRAN cant allow a package that writes to disk other than tempdir.
Dear Jonathan Sidi,
your package creates ~/.R/rstudio/keybindings:
$ grep -r 'rstudio.*keybindings' .
./rsam/R/rm_shorcut.R: path="~/.R/rstudio/keybindings/addins.json",
./rsam/R/set_shortcut.R: path="~/.R/rstudio/keybindings/addins.json",
./rsam/R/fetch_keys.R: json_now <- jsonlite::fromJSON("~/.R/rstudio/keybindings/addins.json")
./rsam/R/zzz.R: key_dir <- '~/.R/rstudio/keybindings'
./rsam/R/zzz.R: dir.create('~/.R/rstudio/keybindings',showWarnings = FALSE,recursive = TRUE)
./rsam/R/zzz.R: key_dir <- '~/.R/rstudio/keybindings'
./rsam/R/zzz.R: dir.create('~/.R/rstudio/keybindings',showWarnings = FALSE,recursive = TRUE)
Please do not create directories/documents outside of tempdir(). This is not allowed by CRAN policies.
Please fix this immediately and resubmit a new version with increased version number via the CRAN web form.
Best,
CRAN
can this issue be solved in the IDE dev?