Skip to content

Commit

Permalink
Merge pull request #23 from nmfs-ost/add-devcontainer
Browse files Browse the repository at this point in the history
add rstudio devcontainer for codespaces
  • Loading branch information
Schiano-NOAA authored Nov 15, 2024
2 parents 1d906a3 + e2f4852 commit 6cefafd
Showing 1 changed file with 49 additions and 0 deletions.
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"

}

0 comments on commit 6cefafd

Please sign in to comment.