failure in rendering a Quarto doc from RStudio due to "&" in user folder name

Hi all,
I recently updated to the latest versione of RStudio IDE on my personal home PC with Windows 10 (64bit)

With the new RStudio version (latest available) the rendering of Quarto to create a html doc fails and the problem seems that it is unable to locate the user folder. in practice in my user folder I have a "&" and RStudio in rendering gets only the path before the "&", i.e. instead of "C:\users\aa&bb" it returns just "C:\users\aa" and then the following error message
"C:\users\aa" is not recognized as an internal or external command, an executable program or batch file.
Never happened before with previous RStudio IDE versione.

How can I solve?

1 Like

Hi, I have confirmed this is an issue in Quarto 1.9 (bundled with RStudio). The previous release of RStudio had Quarto 1.8, and it did not have this problem. I opened this issue to track (it will probably get moved into a Quarto issue at some point): Quarto render fails when Windows username contains ampersand · Issue #17712 · rstudio/rstudio · GitHub

If you install a standalone Quarto, RStudio will use it instead of the bundled copy, so you can work around this by downgrading to Quarto 1.8.27.

You will need to install Quarto for all users on the machine (admin access required). If you install it just for your user account the problem will happen even with 1.8.

Download this and run it to install: https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.27/quarto-1.8.27-win.msi.

Then restart RStudio and it should resolve the problem.

1 Like

Gary thanks for the support.
I will go with your suggestion

best,
m

1 Like

The Quarto team has released a new version with the fix for this problem, 1.9.38, so you could install that version instead of 1.8, if you wish.

1 Like

thanks for the update!

1 Like