You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow administrators to configure the Posit Assistant installation path #18687
An administrator who wants Posit Assistant available to every user of an RStudio Server node has exactly one supported location for it: pai/bin under the XDG system configuration directory -- /etc/rstudio/pai/bin on Linux and macOS, C:/ProgramData/rstudio/pai/bin on Windows.
Sites that keep shared software somewhere else -- /opt, a read-only NFS mount, or a versioned deployment tree -- have no supported way to point RStudio at it. RSTUDIO_POSIT_AI_PATH can do it, but it is a per-process environment variable meant for development and testing, not a deployment mechanism.
Proposal
Add a posit-assistant-path session option (set in rsession.conf) that names the directory holding the administrator-managed installation.
When the option is set it replaces the XDG system configuration location in the search order rather than adding another location to it, so the order becomes:
RSTUDIO_POSIT_AI_PATH, for development and testing
The per-user installation under the XDG data directory
posit-assistant-path when set, otherwise <XDG system config dir>/pai/bin
If the option is set but the directory does not hold a valid installation, RStudio logs a warning and reports Posit Assistant as not installed. It does not fall back to /etc/rstudio/pai/bin, since that would hide the misconfiguration.
An installation found through this option is treated the same as one under /etc/rstudio: RStudio reads it but never writes to it, and refuses to uninstall it.
Activity
Address review findings on posit-assistant-path
Add posit-assistant-path option for admin-managed installs (#18688)