Problem
When using the devcontainer in VS Code / GitHub Codespaces (e.g. ghcr.io/geocompx/minimal), running R plot commands like plot(1:9) does not display any plot in the VS Code editor webview.
Root Cause
.devcontainer/devcontainer.json is missing r.sessionWatcher: true and r.plot.useHttpgd: true in customizations.vscode.settings.
- The
httpgd interactive graphic device R package is not installed in the base minimal container image.
Proposed Fix
- Include
httpgd in minimal/Dockerfile package installation (pak::pak()).
- Configure VS Code R settings in
.devcontainer/devcontainer.json for automatic session watching and interactive plot rendering.
Problem
When using the devcontainer in VS Code / GitHub Codespaces (e.g.
ghcr.io/geocompx/minimal), running R plot commands likeplot(1:9)does not display any plot in the VS Code editor webview.Root Cause
.devcontainer/devcontainer.jsonis missingr.sessionWatcher: trueandr.plot.useHttpgd: trueincustomizations.vscode.settings.httpgdinteractive graphic device R package is not installed in the baseminimalcontainer image.Proposed Fix
httpgdinminimal/Dockerfilepackage installation (pak::pak())..devcontainer/devcontainer.jsonfor automatic session watching and interactive plot rendering.