Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Update the R definition #954

Merged
merged 4 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions containers/r/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# R version: latest, ... ,4.0.1 , 4.0.0
# R version: latest, ... , 4.0.3
ARG VARIANT="latest"
FROM rocker/r-ver:${VARIANT}

Expand Down Expand Up @@ -26,11 +26,17 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
libxt-dev \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts \
&& python3 -m pip --no-cache-dir install radian \
&& install2.r --error --skipinstalled --repos ${CRAN} --ncpus -1 \
&& install2.r --error --skipinstalled --ncpus -1 \
devtools \
languageserver \
httpgd \
&& rm -rf /tmp/downloaded_packages

# R Session watcher settings.
# See more details: https://github.com/REditorSupport/vscode-R/wiki/R-Session-watcher
RUN echo 'source(file.path(Sys.getenv("HOME"), ".vscode-R", "init.R"))' >> ${R_HOME}/etc/Rprofile.site \
&& echo 'options(vsc.use_httpgd = TRUE)' >> ${R_HOME}/etc/Rprofile.site

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update \
# && export DEBIAN_FRONTEND=noninteractive \
Expand Down
12 changes: 8 additions & 4 deletions containers/r/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,28 @@
"name": "R (Community)",
"build": {
"dockerfile": "Dockerfile",
// Update VARIANT to pick a specific R version: latest, ... ,4.0.1 , 4.0.0
// Update VARIANT to pick a specific R version: latest, ... , 4.0.3
"args": { "VARIANT": "latest" }
},

// Set *default* container specific settings.json values on container create.
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.sessionWatcher": true,
"[r]": {
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
},
"terminal.integrated.profiles.linux": {
"radian": {
"path": "/usr/local/bin/radian",
"overrideName": true
}
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ikuyadeu.r",
"reditorsupport.r-lsp"
"ikuyadeu.r"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down