A template for rstudio-server?
eitsupi opened this issue · comments
PS. Might be worth thinking of a sister r2u+RStudio template, as that's come up a few times on social media since I posted my example repo.
Originally posted by @grantmcdermott in #19 (comment)
I tried the following (the existing r2u
template with the new rstudio-server
Feature added) on my own computer with VS Code Dev Containers, but when I run install.packages("curl")
on RStudio, the installation seems to stop at the ading state information
step.
{
"name": "R (r2u and bspm configured)",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/rocker-org/devcontainer-features/r-apt:0": {
"vscodeRSupport": "full",
"installDevTools": true,
"installRMarkdown": true,
"installRadian": true,
"installVscDebugger": true,
"installBspm": true,
},
"ghcr.io/rocker-org/devcontainer-features/rstudio-server:0": {}
},
"customizations": {
"vscode": {
"extensions": [
"RDebugger.r-debugger"
],
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true
}
}
},
"postCreateCommand": {
"rstudio-start": "rserver"
},
"forwardPorts": [
8787
]
}
Edit: I have created an issue (rocker-org/devcontainer-features#176)
It also does not seem to work well on Codespaces. (grantmcdermott/codespaces-r2u#5)
Thus, the installation stopped in the middle of the installation process.
If I run the same command in another process on VS Code, I get the following:
> install.packages("curl")
Available system packages as root...
Install system packages as root...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Error: E:Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1776 (bspm.py), W:Be aware that removing the lock file is not a solution and may break your system., E:Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
What do have in Dockerfile? In what I (and Grant) now use for 'codespace with r2u' we are just using base/jammy with your r-apt codespace feature.
What do have in Dockerfile? In what I (and Grant) now use for 'codespace with r2u' we are just using base/jammy with your r-apt codespace feature.
This is that.