What would you name this package?

The cause

Two days ago I misspelled geom_boxplot (geom_Boxplot), had to look for a %>% next to it, and fumble with the brackets.

Don't repeat yourself

Got a bit carried away over the weekend making a few quality of life functions in an addin package.

The package

Package currently includes

  • Automatic switching between %>% and +.
    1 key press for both %>% and + bound to a shortcut. Which operator is inserted changes based on context in R script, and happens behind the scenes when constructing functions. Example: when inserting a plot function, a check verifies that the pipe operator is set correctly.
  • Indented pipe operator shortcut (tidyverse styleguide)
  • Shortcuts for inserting dplyr verbs.
    A nice shortcut layout is very pleasant. Example: in gif below, I use ctrl+shift+s for select, and ctrl+shift+1 for the helper starts_with, ctrl+shift+f for filter, ctrl+shift+m for mutate, and so on. Which keys to bind shortcuts to, is the users' choice.
  • Constructor methods to assemble and insert most tidyverse functions through 1-4 letter abbreviations.
    Currently methods are included for tidyr, ggplot2, forcats, readr, clock, recipes and parsnip packages.
    Conveniently, these shortcuts allow to predict when to switch to other pipe operator and where to place the cursor.
  • Wrapper method to call any constructor method
    This allows most tidyverse functions to be constructed and inserted via 1 dialog box, even though many share similar first, second letters. For example, 2sd in dialog box returns stringr's str_detect, while 4iymd returns clocks' is_year_month_day(). In the gif, I use it by hitting ctrl+shift+/.

Here's a sneak preview with white box displaying button presses
package

Given, it is cherrypicked, but it shows the possible input speed and convenience. Doesn't seem like much, but that is roughly 190 key presses if fully typed, currently reduced to about 90 buttons presses, while much less distracted by syntax, pipe operator and browsing through autocompletion lists. Snippets are cool, but try making couple hundred of those for functions like fct_lump_freqpoly

The problem: a name?

Now the hardest part of package development.. a name. Could you help?

turbokit
inspiration drawn from packages vroom and mufflr, both packages aimed at making R experience speedier.

device that increases an engines power output by forcing extra compressed air into the combustion chamber.

tidyshortcuts
It says on the box. Bit boring, but to the point

pedant
Nod to function name suggestion in a poll, when Hadley Wickham asked to describe what pivot_longer does compared to pivot_wider.

Should put a + not a %>%
gives me this vibe

a person [or thing??] who is excessively concerned with minor details

something else
??

note

This is an addin package, meaning there no need to use library to access its functions. Shortcuts available on opening RStudio. Key is to not use a package name that others might want to use later.

Have a function request or bright idea? Want to collaborate? Send a pm :nerd_face:

By the way, is there a name for +? Where %>% is the pipe, + is ....?

1 Like

Suggestion and guess

  1. shortr
  2. also?

I like tidyshortcuts

I'm quite surprised shortr is still available - definitely a poll option in the future. I like its brevity!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.