Skip to content

Commit e6842a9

Browse files
committed
add note on opening R terminal with command palette
1 parent 0a4697e commit e6842a9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

docs/tutorials/running_r.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
1) Create a file in VS Code ending with a .R extension. You can create new files
2+
1) Create a file in VS Code ending with a `.R` extension. You can create new files
33
by clicking on the new file icon in VS Code Explorer, or use the `code` command
44
in the terminal to create and open an R file
55

@@ -10,11 +10,25 @@ code R/test.R
1010
![alt text](../assets/rdev4.png)
1111

1212
2) You should see `R:(not attached)` in the Status Bar at the bottom of the
13-
VSCode window.
13+
VSCode window:
1414

1515
![alt text](../assets/rdev11.png)
1616

17-
3) Click on the `R:(not attached)` link to launch an R terminal. You can then
18-
send code from the `.R` file to the R terminal by pressing `cmd/ctrl + enter`.
17+
Click on the `R:(not attached)` link to launch an R terminal.
1918

20-
![alt text](../assets/rdev12.png) ![alt text](../assets/rdev5.png)
19+
![alt text](../assets/rdev12.png)
20+
21+
<!-- markdownlint-disable MD046 -->
22+
!!! Note
23+
If you don't see the `R:(not attached)` link in the status
24+
bar, you can open an R terminal using the VS Code Command Palette. Click the
25+
cog icon ('Manage') in the bottom left of the VS Code window, then click
26+
`Command Palette` (note the keyboard shortcut displayed next to this menu
27+
item for future use). This starts a prompt at the top of the VS Code window.
28+
Type `R terminal` and select the command `R: Create R terminal`.
29+
<!-- markdownlint-enable MD046 -->
30+
31+
3) You can then send code from the `.R` file to the R terminal by pressing
32+
`cmd/ctrl + enter`.
33+
34+
![alt text](../assets/rdev5.png)

0 commit comments

Comments
 (0)