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

Commit f03374c

Browse files
authored
[R] Add R 4.2 and minor update (#1425)
* add R 4.2 * fix the init command
1 parent 8fb4fde commit f03374c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

containers/r/.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Choice] R version: 4, 4.1, 4.0
1+
# [Choice] R version: 4, 4.2, 4.1, 4.0
22
ARG VARIANT=4
33
# [Choice] Base image. Minimal (r-ver), tidyverse installed (tidyverse), or full image (binder): rocker/r-ver, rocker/tidyverse, rocker/binder
44
ARG BASE_IMAGE=rocker/r-ver
@@ -42,7 +42,7 @@ RUN export TAG=$(git ls-remote --tags --refs --sort='version:refname' https://gi
4242

4343
# R Session watcher settings.
4444
# See more details: https://github.com/REditorSupport/vscode-R/wiki/R-Session-watcher
45-
RUN echo 'source(file.path(Sys.getenv("HOME"), ".vscode-R", "init.R"))' >> ${R_HOME}/etc/Rprofile.site
45+
RUN echo 'if (interactive() && Sys.getenv("TERM_PROGRAM") == "vscode") source(file.path(Sys.getenv("HOME"), ".vscode-R", "init.R"))' >>"${R_HOME}/etc/Rprofile.site"
4646

4747
# [Option] Enable vscode-jupyter support
4848
ARG ENABLE_JUPYTER="false"

0 commit comments

Comments
 (0)