Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a shortcut for %in%?

Tags:

r

rstudio

I have searched unsuccessfully for a keyboard shortcut for %in% in R using RStudio. Wondering if anyone here has figured this out? I have tried all the combinations I could think of.

like image 339
IamAdam Avatar asked Nov 05 '19 15:11

IamAdam


People also ask

What does Ctrl Shift F do?

Ctrl+Shift+F Change the font.

What is Ctrl Shift N?

Opens a new window in incognito mode. Ctrl+Shift+N. Opens a file from your computer in Google Chrome. PressCtrl+O, then select file. Opens the link in a new tab in the background.

What is the Ctrl B?

Ctrl+I or Ctrl+3. Bold text or remove bold formatting. Ctrl+B or Ctrl+2. Underline text or remove underline. Ctrl+U or Ctrl+4.

What does Ctrl 1mean?

Ctrl+1 in Microsoft Word In Microsoft Word, pressing Ctrl + 1 changes a line, paragraph, or all highlighted text to have single spacing. Tip. You may also press Ctrl + 2 to set the line spacing to double, or Ctrl + 5 to set it to 1.5 spaces per line.


1 Answers

An answer years later, in case this is still of interest.

You can get this shortcut by using the addinexamples package.

  1. Install the package:

devtools::install_github("rstudio/addinexamples", type = "source")

  1. Restart R
  2. Go to Tools -> Addins -> Browse Addins
  3. Click on Keyboard Shortcuts.... You will see the shortcut for %in%is now Ctrl + Shift + I. You can change the shortcut by clicking on it and running the shortcut you wish.

enter image description here

like image 78
ViviG Avatar answered Oct 10 '22 06:10

ViviG