@@ -17,55 +17,58 @@ prerequisites installed.
1717
18181 . Clone the [ R Dev Container Github
1919 repo] ( https://github.com/r-devel/r-dev-env/ )
20+
20212 . In a terminal, change directory to r-dev-env
2122
22- ``` bash
23- cd r-dev-env
24- ```
23+ ``` bash
24+ cd r-dev-env
25+ ```
2526
26273. Restart VSCode in the ` r-dev-env` directory with the command:
2728
28- ``` bash
29- code .
30- ```
29+ ` ` ` bash
30+ code .
31+ ` ` `
3132
32334. Checkout the main branch and pull the latest changes
3334
34- ``` bash
35- git checkout main
36- git pull
37- ```
35+ ` ` ` bash
36+ git checkout main
37+ git pull
38+ ` ` `
3839
39- The main branch provides the stable release. If you require an in-development
40- feature, use the devel branch instead.
40+ The main branch provides the stable release. If you require an in-development
41+ feature, use the devel branch instead.
4142
42435. After this step please be sure that your docker engine is started. If you
4344 have installed Docker Desktop just open the Docker Desktop app the engine
4445 starts automatically and if you are using just docker engine make sure to
4546 start it with the following command
4647
47- ``` bash
48- systemctl start docker
49- ```
48+ ` ` ` bash
49+ systemctl start docker
50+ ` ` `
5051
51526. We can see pop-up at the bottom right of the VSCode editor which says reopen
52- in Dev Container. Click on ` Reopen in DevContainer ` button. ![ start
53- localsetup] ( ../../assets/rdev13.png )
53+ in Dev Container.
54+ Click on ` Reopen in DevContainer` button.
55+ ! [startlocalsetup](../../assets/rdev13.png)
5456
55577. After clicking on that button we will see our container is getting ready. It
5658will take some time. So till that time you can have coffee :) ! [start
5759localsetup](../../assets/rdev24.png)
5860
59618. We can also test whether the dev container is working or not by just printing
60- the environment variables mentioned in the welcome message on the terminal.
62+ the environment variables mentioned in the welcome message on the terminal.
63+
64+ ` ` ` console
65+ $ echo $BUILDDIR
66+ /workspaces/r-dev-env/bin/R
67+ ` ` `
6168
62- ``` console
63- $ echo $BUILDDIR
64- /workspaces/r-dev-env/bin/R
65- ```
69+ And there we go!!! We have setup our R Dev Container locally. ! [start
70+ localsetup](../../assets/rdev25.png)
6671
67- And there we go!!! We have setup our R Dev Container locally. ![ start
68- localsetup] ( ../../assets/rdev25.png )
6972
70739. The container will be closed when you close VSCode. To reopen the container,
71- open the ` r-dev-env ` directory in VSCode.
74+ open the ` r-dev-env` directory in VSCode.
0 commit comments