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
Quarto render fails when Windows username contains ampersand #17712
RStudio Edition : Desktop
RStudio Version : 2026.04.0+526
OS Version : Windows 10
R Version : (any)
Steps to reproduce the problem
On Windows, use a user account whose name contains an ampersand (e.g. gary&ritchie), so the home folder is something like C:\Users\gary&ritchie.
Open RStudio 2026.04.0+526 as that user.
Create or open any Quarto document and click Render (HTML output).
Describe the problem in detail
Rendering fails with an error like:
'C:\Users\gary' is not recognized as an internal or external command, an executable program or batch file.
The path is being truncated at the &, so only C:\Users\gary is passed to the shell instead of the full C:\Users\gary&ritchie. The ampersand is being interpreted by cmd.exe as a command separator, indicating the path is not being properly quoted/escaped when invoked.
This is a regression: it does not reproduce with RStudio 2026.01.2 (which bundled Quarto 1.8.25). The current release (2026.04.0) bundles Quarto 1.9.37. It is not yet clear whether the bug lives in RStudio's invocation of Quarto or in Quarto itself.
This seems to be a Quarto issue. After seeing it work correctly with RStudio 2026.01 (with bundled Quarto 1.8), then I installed standalone Quarto 1.9.37 (which RStudio then uses) and the bug starts happening.
Activity
gtritchie commentedon May 20, 2026
This seems to be a Quarto issue. After seeing it work correctly with RStudio 2026.01 (with bundled Quarto 1.8), then I installed standalone Quarto 1.9.37 (which RStudio then uses) and the bug starts happening.
gtritchie commentedon May 20, 2026
If you install standalone Quarto for only the current user (the one with an ampersand in the name) then other failures happen, even with Quarto 1.8.
So, as a workaround, install Quarto 1.8.27 via https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.27/quarto-1.8.27-win.msi for All users of the machine (not just the current user).
gtritchie commentedon May 20, 2026
Confirmation that the problem is Quarto, not RStudio:
gtritchie commentedon May 25, 2026
Quarto 1.9.38 has been released with a fix for this issue: https://github.com/quarto-dev/quarto-cli/releases/tag/v1.9.38.
Add NEWS entry for #17712 (Quarto ampersand-in-path fix)
Update Quarto to 1.9.38 (#17766)