gadenbuie / shrtcts

Make Anything an RStudio Shortcut
https://pkg.garrickadenbuie.com/shrtcts/
Other
119 stars 4 forks source link

If the shortcut calls a function and is interactive, send the code to the console #3

Closed gadenbuie closed 4 years ago

gadenbuie commented 4 years ago

If the shortcut

then

Ex. a shortcut calls usethis:::restart_rstudio. Instead of calling shrtcts:::shortcut_05() interactively (where that's the code seen in the console), the shortcut should use rstudioapi::sendToConsole("usethis:::restart_rstudio()") to execute the shortcut.