Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rstudio devcontainer for codespaces #23

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Codespace
// This codespace contains R and a port for an Rstudio server in case
// that is the preferred IDE over VSCode.
{
"name": "R (rocker/tidyverse)",
"image": "ghcr.io/rocker-org/devcontainer/tidyverse:4.3",

"features": {
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {},
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
"packages": "make,gcc,g++,cmake,clang-tidy,clang-format"
},
"ghcr.io/rocker-org/devcontainer-features/r-packages:1": {
"packages": "cli,rlang,usethis,devtools,ggplot2,remotes,pak",
"installSystemRequirements": true
}
},
"customizations": {
"vscode": {
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"[r]": {
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
}
},
"extensions":[
"GitHub.codespaces",
"hbenl.vscode-test-explorer",
"reditorsupport.r",
"rdebugger.r-debugger",
"ms-vsliveshare.vsliveshare",
"mathematic.vscode-pdf"
]
}
},
"forwardPorts": [8787],
"portsAttributes": {
"8787": {
"label": "Rstudio",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},
"postAttachCommand": "sudo rstudio-server start",
"remoteUser": "rstudio"

}
Loading