Skip to content

Commit b425032

Browse files
committed
fix(codespace): further attempt to fix
1 parent 8a0862b commit b425032

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.devcontainer/.devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
{
44
"name": "RStudio with Quarto",
5-
"image": "ghcr.io/rocker-org/devcontainer/tidyverse:4.4",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
},
8+
69
"runArgs": [ "--security-opt", "seccomp=unconfined" ],
710
"waitFor": "onCreateCommand",
811

@@ -20,17 +23,18 @@
2023
"r.bracketedPaste": true,
2124
"r.plot.useHttpgd": true,
2225
"[r]": {
23-
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\\\|;:'\\\",<>/?"
26+
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
2427
}
2528
},
2629
"extensions": [
27-
"REditorSupport.r",
28-
"rdebugger.r-debugger",
30+
"reditorsupport.r",
31+
"rdebugger.r-debugger",
2932
"quarto.quarto"
3033
]
3134
}
3235
},
3336

37+
// Forward the RStudio ports
3438
"forwardPorts": [8787],
3539
"portsAttributes": {
3640
"8787": {

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Source: Adapted from https://github.com/boettiger-lab/nasa-topst-env-justice (MIT)
2+
3+
# Start with version-stable build of R, RStudio Server, and R packages.
4+
FROM ghcr.io/rocker-org/devcontainer/tidyverse:4.5
5+
6+
USER rstudio
7+
WORKDIR /home/rstudio
8+
RUN usermod -s /bin/bash rstudio
9+
ENV PATH=$PATH:/home/rstudio/.local/bin

0 commit comments

Comments
 (0)