Change keyboard shortcut¶
To run code in RStudio on the HPC, you need to send it to the terminal. You may find it useful to set up an easy keyboard shortcut to do this, particularly if you use a Mac.
To do this you will need to:
Navigate to the keyboard shortcut menu. Click on Tools > Modify Keyboard Shortcut.
Find the shortcut you need. Use filter search box to type "send" to help you filter through all the various shortcuts. This should narrow down the options.
Select "Send Selection to Terminal"
Set to Ctrl+Cmd+Enter, or any preferred setting. Look out for keyboard shortcuts that already do other things, for example Ctrl+Enter or Cmd+Enter that are already used to sending your selection or line to the R console.
Click on Apply, and close the screen by clicking on Cancel.
Go back to section 1: Steps to enable the Terminal in Rstudio
Go to section 3: Logging into the HPC and setting up your environment.