Skip to content

deprecated insertAtAddin function in addinexamples? #10

@moldach

Description

@moldach

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:

install.packages("rstudioapi", type = "source")
devtools::install_github("rstudio/addinexamples", type = "source")
library(rstudioapi)
library(addinexamples)

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 to insertAtAddin

Next quit R and then reload, now type:

insertAtAddin <- function(){rstudioapi::insertText(" %>% ")}

Now go to Addins on the toolbar and click Browser Addins then to shortcuts, now double-click function then type:

Shift + Ctrl + S

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 functioninsertAtAddinin theaddinexamples` 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions