Skip to content
Draft
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
12 changes: 12 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use a base image with Ubuntu
FROM mcr.microsoft.com/devcontainers/base:ubuntu

# Install R
RUN apt-get update && \
apt-get install -y --no-install-recommends \
r-base \
r-base-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Set default shell
SHELL ["/bin/bash", "-c"]
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "R Environment",
"build": {
"dockerfile": "Dockerfile"
},
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"Ikuyadeu.r", // R language support in VS Code
"REditorSupport.r-lsp" // R Language Server
Comment on lines +10 to +11
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON does not support comments. Remove the inline comments or the devcontainer will fail to parse.

Suggested change
"Ikuyadeu.r", // R language support in VS Code
"REditorSupport.r-lsp" // R Language Server
"Ikuyadeu.r",
"REditorSupport.r-lsp"

Copilot uses AI. Check for mistakes.

],
"postCreateCommand": "Rscript -e 'install.packages(c(\"languageserver\"), repos=\"https://cloud.r-project.org\")'"
}