Paths¶
Each product sorts its files the same way: settings in /etc, program files in /opt or /usr/lib, state in /var/lib, and logs in /var/log/rstudio. This page shows that layout at a glance. The full lists, with owners and modes, are on each product's Directories and Files page.
Layout by product¶
The diagram below maps each product to its default directories. Every path can be moved by configuration; the posit-workbench, posit-connect, and posit-pm scripts show the values in use.
flowchart LR
subgraph WB["<strong>Workbench</strong>"]
WBetc("/etc/rstudio/")
WBlib[("/var/lib/rstudio-server/")]
WBlog("/var/log/rstudio/rstudio-server/")
end
style WB fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style WBetc color:#1a1a1a
style WBlog color:#1a1a1a,font-size:14px
style WBlib fill:#f1eaf6,stroke:#7a4f9a,stroke-width:2px,color:#1a1a1a
flowchart LR
subgraph CON["<strong>Connect</strong>"]
CONetc("/etc/rstudio-connect/")
CONlib[("/var/lib/rstudio-connect/")]
CONlog("/var/log/rstudio/rstudio-connect/")
end
style CONetc color:#1a1a1a
style CONlog color:#1a1a1a,font-size:14px
style CON fill:#fdf1e3,stroke:#c9822b,stroke-width:2px,color:#1a1a1a
style CONlib fill:#f1eaf6,stroke:#7a4f9a,stroke-width:2px,color:#1a1a1a
flowchart LR
subgraph PM["<strong>Package Manager</strong>"]
PMetc("/etc/rstudio-pm/")
PMlib[("/var/lib/rstudio-pm/")]
PMlog("/var/log/rstudio/rstudio-pm/")
end
style PMetc color:#1a1a1a
style PMlog color:#1a1a1a,font-size:14px
style PM fill:#e8f5ec,stroke:#3f8f5a,stroke-width:2px,color:#1a1a1a
style PMlib fill:#f1eaf6,stroke:#7a4f9a,stroke-width:2px,color:#1a1a1a
| Product | Owners, modes, and every path | Settings |
|---|---|---|
| Workbench | Directories and Files | Configuration Files |
| Connect | Directories and Files | Configuration File |
| Package Manager | Directories and Files | Configuration File |
The /var/lib directories hold the state you cannot rebuild, such as databases, encryption keys, and licenses. Those are what backups and validation records must cover.
Languages¶
R, Python, and Quarto live under /opt and are shared by all three products. The site files beside them point every R and Python install at Package Manager.
flowchart TD
R[("/opt/R/*/")] --> RP("Rprofile.site<br/>repositories, user agent")
Py[("/opt/python/*/")] --> Pip("/etc/pip.conf<br/>package index")
Q[("/opt/quarto/*/")]
RP --> PPM(["Package Manager"])
Pip --> PPM
WB(["Workbench"]) --> R
WB --> Py
CON(["Connect"]) --> R
CON --> Py
CON --> Q
PPM -.->|"Git builds"| R
style PPM fill:#e8f5ec,stroke:#3f8f5a,stroke-width:2px,color:#1a1a1a
style WB fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style CON fill:#fdf1e3,stroke:#c9822b,stroke-width:2px,color:#1a1a1a
| Path | Contents |
|---|---|
/opt/R/<version>/ |
R installations (scanned by Workbench1 and Connect2) |
/opt/R/<version>/lib/R/etc/Rprofile.site |
Site profile: repositories, user agent3 |
/opt/python/<version>/ |
Python installations4 |
/opt/quarto/<version>/ |
Quarto installations5 |
/etc/pip.conf |
System pip index6 |