The irrsa (Insert or Replace RStudio Addin) package currently provides two RStudio addins:
- An addin which inserts
=
at the cursor position. This is convenient if you prefer to use=
instead of<-
as an assignment operator. - An addin which replaces
\
with/
. This is convenient if you copy and paste Windows paths (which contain\
) into R scripts (which require/
in file paths).
The addins can be bound to keyboard shortcuts (e.g. Alt+- to replace the
RStudio shortcut for <-
with =
).
if (!require("devtools")) { install.packages("devtools") }
devtools::install_github("pasturm/irrsa")
- Select Tools -> Addins -> Browse Addins... -> Keyboard Shortcuts...
- Add the shortcut (e.g. Alt+- for Insert
=
and Alt+/ for Replace\
with/
).
See the NEWS file for latest release notes.