Skip to content

Commit

Permalink
[rstudio-server] add more notes about installation and settings (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Sep 3, 2023
1 parent 8bde1e0 commit d104e5b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/rstudio-server/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ If we want to run RStudio Server automatically, for example,
we can set the `rserver` command to `postAttachCommand` as follows.

Since `rserver` uses the 8787 port by default, `"forwardPorts": [8787]` is also configured here.
And, set the `portsAttributes` property to clarify what the port is used for.

```json
{
Expand All @@ -27,7 +28,12 @@ Since `rserver` uses the 8787 port by default, `"forwardPorts": [8787]` is also
},
"forwardPorts": [
8787
]
],
"portsAttributes": {
"8787": {
"label": "RStudio IDE"
}
}
}
```

Expand Down Expand Up @@ -80,6 +86,17 @@ For example:
}
```

Of course, there is no additional R installation when selecting an image that already has R installed.

```json
{
"image": "ghcr.io/rocker-org/devcontainer/r-ver:4",
"features": {
"ghcr.io/rocker-org/devcontainer-features/rstudio-server": {}
}
}
```

## References

- [RStudio Server](https://posit.co/products/open-source/rstudio-server/)
Expand Down

0 comments on commit d104e5b

Please sign in to comment.