-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathdevcontainer.json
53 lines (48 loc) · 1.39 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "R Data Science Environment",
"build": {
"dockerfile": "Dockerfile",
// Update VARIANT to pick a specific R version: 4, 4.1, 4.0
"args": { "VARIANT": "4" }
},
// Set *default* container specific settings.json values on container create.
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"[r]": {
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
// Add Jupyter, R and Python vscode extensions
"REditorSupport.r",
"rdebugger.r-debugger",
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-renderers",
"ms-python.python",
"ms-python.vscode-pylance",
"vsls-contrib.codetour",
"GitHub.copilot"
],
// Forward Jupyter and RStudio ports
"forwardPorts": [8787, 8888],
"portsAttributes": {
"8787": {
"label": "Rstudio",
"requireLocalPort": true,
"onAutoForward": "ignore"
},
"8888": {
"label": "Jupyter",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo rstudio-server start",
// "postCreateCommand": "pip3 install -r requirements.txt",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "rstudio"
}