-
https://containers.dev/implementors/json_reference/#remoteUser |
Beta Was this translation helpful? Give feedback.
Answered by
benz0li
Jun 27, 2023
Replies: 0 comments 2 replies
-
Yes. And R/Python/Julia packages are always installed within the users home directory. Footnotes
|
Beta Was this translation helpful? Give feedback.
0 replies
-
To connect as diff --git a/.devcontainer/r-base/devcontainer.json b/.devcontainer/r-base/devcontainer.json
index 7f81ce2..571b9e3 100644
--- a/.devcontainer/r-base/devcontainer.json
+++ b/.devcontainer/r-base/devcontainer.json
@@ -85,13 +85,13 @@
},
// Set 'remoteUser' to 'root' to connect as root instead.
- "remoteUser": "vscode",
- "workspaceMount": "source=r-base-home-vscode,target=/home/vscode,type=volume",
- // "workspaceMount": "source=${localWorkspaceFolder}/.bind-mounts/r-base-home-vscode,target=/home/vscode,type=bind",
- "workspaceFolder": "/home/vscode"
+ // "remoteUser": "vscode",
+ // "workspaceMount": "source=r-base-home-vscode,target=/home/vscode,type=volume",
+ // // "workspaceMount": "source=${localWorkspaceFolder}/.bind-mounts/r-base-home-vscode,target=/home/vscode,type=bind",
+ // "workspaceFolder": "/home/vscode"
- // "remoteUser": "root",
- // "workspaceMount": "source=r-base-root,target=/root,type=volume",
- // // "workspaceMount": "source=${localWorkspaceFolder}/.bind-mounts/r-base-root,target=/root,type=bind",
- // "workspaceFolder": "/root"
+ "remoteUser": "root",
+ "workspaceMount": "source=r-base-root,target=/root,type=volume",
+ // "workspaceMount": "source=${localWorkspaceFolder}/.bind-mounts/r-base-root,target=/root,type=bind",
+ "workspaceFolder": "/root"
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benz0li
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To connect as
root
, e.g. modify thedevcontainer.json
for R base as follows: