Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut for code chunk in R Markdown for windows gives í

Using RStudio for windows. Help says keyboard shortcut for inserting code chunk is Ctrl + Alt + i, which should give me:

```{r}

```

Instead, I get í (accented i, not bold...)

What is the keyboard shortcut to insert code chunks in this case?

like image 827
Daniel Avatar asked Mar 14 '17 11:03

Daniel


People also ask

What is the keyboard shortcut to execute a chunk of code in R notebooks?

Code Chunks You can quickly insert chunks into your R Markdown file with the keyboard shortcut Cmd + Option + I (Windows Ctrl + Alt + I).

How do I add chunk codes in R?

You can insert an R code chunk either using the RStudio toolbar (the Insert button) or the keyboard shortcut Ctrl + Alt + I ( Cmd + Option + I on macOS).


3 Answers

I've faced similar problem. To solve it, I changed the keyboard setting, I use windows 10:

start -> setting -> time & language -> Region & language -> below +add language click the windows display language - > options -> add a keyboard, I choose US Qwerty -> change the keyboard on the right bottom of the corner side beside date & time, change it to eng us keyboard

like image 133
rosan.fiqri Avatar answered Oct 22 '22 17:10

rosan.fiqri


Fastest way is to assign new Shortcut:

Tools >> Modify Keyboard Shortcuts >> find relevant Shortcut >> click inside >> Add new shortcut

like image 34
vlad1490 Avatar answered Oct 22 '22 19:10

vlad1490


The Case is Happening when you select Keyboard Type (ENG - INTL) or Some Other. Change Your Keyboard by pressing (Windows + Space) and Select Keyboard Type(ENG - US)

like image 2
Kavindu Nuwandika Avatar answered Oct 22 '22 19:10

Kavindu Nuwandika