Open moldach opened 6 years ago
Related:
I've tried adding a insertCompoundAddin function and binding it but I can't find the insertInAddin.R file, so I cannot add or duplicate and modify the file to add the following function
insertCompoundAddin <- function() { rstudioapi::insertText(" %<>% ") }
Is it possible for you to add it to the list?
In the past I could add my own shortcuts with the addinexamples package by doing the following; however, I'm getting an error now at the last step:
Now search for the addins.dcf file in your R directory and open it in a text editor.
Copy the first block to the bottom but replace
%in%
with%>%
and the binding toinsertAtAddin
Next quit R and then reload, now type:
Now go to
Addins
on the toolbar and clickBrowser Addins
then toshortcuts
, now double-click function then type:However, I'm not seeing the "Browser Addins' anymore on the
Addins
toolbar and when I try to click "Insert %>%I get an error saying that there is no function
insertAtAddinin the
addinexamples` package.Am I doing something wrong or has that function been removed? It was really helpful to set a two-stroke hotkey for the pipe operator (and many others!) rather than using
Shift + Ctrl + M