Skip to content

[R-pkg-devel] Package writing to disc

2 messages · Berry Boessenkool, Uwe Ligges

#
Hi,

I have a package with some keyboard shortcuts for Rstudio. Several friends and colleagues asked me to put it on CRAN.
It includes a function to set the keyboard bindings that will write to ~/.R/rstudio/keybindings/addins.json et al.
https://github.com/brry/rskey/blob/master/R/setKeyboardBindings.R
This is not allowed by CRAN policy:
"Packages should not write in the user?s [...] file system [...]. Limited exceptions may be allowed in interactive sessions if the package obtains confirmation from the user."

So if I include  readline("Is it OK to write into the '~/.R/rstudio/keybindings' files? y/n: ")
and explain this behaviour in the submission note, should I be fine to submit and see what happens?

Thanks ahead,
Berry
#
On 24.04.2019 11:08, Berry Boessenkool wrote:
Yes.

Best,
Uwe Ligges