Quarto HTML only rendering on the Desktop

Hi,

I'm currently testing the new Quarto documents and I'm having a really strange problem when I try to render a simple HTML Quarto document. If I save the qmd file on the desktop, it renders without any problem. However if I save it anywhere else (including in a folder on my desktop), the rendering doesn't work and I get the following error message:

Error in rmarkdown:::abs_path(input) : The file 'test.qmd' does not exist.
Calls: .main -> execute -> setwd -> dirname -> <Anonymous>
Execution halted

Note that this only happens if I include an R code chunk in the document.

I don't have any space in the file or folder names and I also tried to change the working directory. Does anybody have an idea how to solve this problem? Here's my sessionInfo (using RStudio 2022.07.2+576):

R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=German_Switzerland.utf8  LC_CTYPE=German_Switzerland.utf8    LC_MONETARY=German_Switzerland.utf8
[4] LC_NUMERIC=C                        LC_TIME=German_Switzerland.utf8    

attached base packages:
[1] stats     graphics  utils     datasets  grDevices methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.2.2  fastmap_1.1.0   cli_3.4.1       htmltools_0.5.3 tools_4.2.2     yaml_2.3.6      rmarkdown_2.18 
 [8] knitr_1.40      xfun_0.34       digest_0.6.30   rlang_1.0.6     evaluate_0.18

It's hard to determine the exact cause of the problem here but it could perhaps be sidestepped by adopting Quarto Projects. There's good information here about how to set up a Quarto project folder using the CLI.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.