'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?



Solution 1:[1]

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

Solution 2:[2]

Fastest way is to assign new Shortcut:

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

Solution 3:[3]

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)

Solution 4:[4]

On Mac OS you can use this shourtcut:

? + ? + I

Solution 5:[5]

actually was searching for a solution since I got the same problem. I am running RStudio on Windows10 with ENG-US Keyboard and Ctrl+Alt+I didn't create a new RMarkdown chunk.

Nevertheless, there is an option on the menu that works: Code >> Insert Chunk (Ctrl+Alt+I).

I thought about the bindings (Tools >> Global Options >> Code >> Modify Keyboard Shortcuts ) after reading this thread and saw the following:

Insert Chunk R => Ctrl+Cmd+I (as opposite to Ctrl+Alt+I)

On windows we don't have Cmd key, but Windows key, so I tried **Ctrl+WindowsKey+I** and it worked!!.

Give it a try!

Solution 6:[6]

I have a laptop with Windows 10 Home installed. Under "Typing Settings" --> "Advanced Keyboard Settings" --> chose "English (Singapore) - US". That fixed the issue.

Solution 7:[7]

Make sure to do it on an R Markdown (HTML) file. I was trying to do it on an R script and of course it was not working (I am a total beginner in R and only needed to use scripts so far). Nothing to do with the shortcuts or keyboard configuration.

Solution 8:[8]

I had this same problem. I was trying to execute the shortcut on a filetype that was not .Rmd.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 zx8754
Solution 2 vlad1490
Solution 3 Kavindu Nuwandika
Solution 4 Shayan Amani
Solution 5 Juan Arellano
Solution 6 Neha Tyagi
Solution 7 Ulra
Solution 8 JesusP