send the function call to the console instead of calling the shortcut function
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.
If the shortcut
then
Ex. a shortcut calls
usethis:::restart_rstudio
. Instead of callingshrtcts:::shortcut_05()
interactively (where that's the code seen in the console), the shortcut should userstudioapi::sendToConsole("usethis:::restart_rstudio()")
to execute the shortcut.