Closed
Description
System details
RStudio Edition : Desktop
RStudio Version : RStudio 2023.12.0+369 "Ocean Storm" Release (33206f75bd14d07d84753f965eaa24756eda97b7, 2023-12-17) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.12.0+369 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36
OS Version : macOS Sonoma Version 14.2.1 (23C71)
R Version : R version 4.3.2 (2023-10-31) -- "Eye Holes"
Steps to reproduce the problem
Describe the problem in detail
In new quarto projects, when I have the Render on Save option selected, I encounter an error when the document renders in the Viewer pane.
Describe the behavior you expected
I expected the document to render without an error:
The output from quarto check is below:
Quarto 1.4.549
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.549
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (external install)
Chromium: 869685
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/mjfrigaard/Library/TinyTeX/bin/universal-darwin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.5 (Conda)
Path: /Users/mjfrigaard/miniconda3/bin/python
Jupyter: 5.5.0
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
- I have read the guide for submitting good bug reports.
- I have installed the latest version of RStudio, and confirmed that the issue still persists.
- If I am reporting an RStudio crash, I have included a diagnostics report.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Reacted by Matt Crump




Activity
CrumpLab commentedon Jan 25, 2024
RStudio Edition : Desktop
RStudio Version : 2023.12.0+369 (2023.12.0+369)
OS Version : Mac M2 14.3 (23D56)
R Version : 4.3.2 (2023-10-31)
Quarto version: 1.4.549
I am also getting the "Error while opening file" "No such file or directory" error.
This happens to me with quarto documents whenever I use the R studio "Render" button and the "Render Website" button in the build tab. I started experiencing this issue when I installed quarto pre-releases a couple months ago. This has been a persistent issue since then. I was hoping it would go away with the new Quarto release, but perhaps this is a RStudio issue.
ronblum commentedon Jan 25, 2024
Note: Originally at quarto-dev/quarto-cli#8445
ronblum commentedon Jan 25, 2024
@mjfrigaard and @CrumpLab Thank you for raising this! I'm unable to reproduce it, though. Can you provide the log files for this? You can find them with Help -> Diagnostics -> Show Log Files. Thanks!
kevinushey commentedon Jan 25, 2024
Can you also confirm that this version of Quarto is being used by RStudio here? What is the output of:
(presumedly this will be the same as the output you shared in the original post, but I wanted to confirm just in case RStudio appears to be using its internal / bundled Quarto installation)
mjfrigaard commentedon Jan 25, 2024
Yes--thank you for your quick response!
Here is the latest `rdesktop.log`:
And the latest
rsession-mjfrigaard.log:mjfrigaard commentedon Jan 25, 2024
The results from
system("quarto check")are below:It just fizzles on the
tools, butquarto checkin the Terminal pane runs fine:kevinushey commentedon Jan 26, 2024
Thanks; I think I was able to reproduce. I needed to have the
[x] Sync Editorcheckbox selected in the Viewer pane.The error doesn't occur for me if I de-select the checkbox. Do you see the same?
Looking at the request log, it seems like there's a template placeholder
<%- inputFile %>that's not being filled in:kevinushey commentedon Jan 26, 2024
Possibly coming from here in Quarto: https://github.com/quarto-dev/quarto-cli/blob/7b1e6d1cda0ae363de3ae602e3839562765b0dee/src/webui/quarto-preview/src/frame/viewer.ts#L39-L44
I'm not sure if this is a Quarto bug or the onus is on us to expand the inputFile stub, though.
mjfrigaard commentedon Jan 26, 2024
Yes--I can confirm the error goes away when I de-select the 'sync editor' option:
Without '[ ] sync editor':
With '[x] sync editor':
venpopov commentedon Jan 29, 2024
After two hours of googling, reinstalling Rstudio and quarto multiple times, I finally found this post. Unchecking "sync editor" also solved it for me!
kevinushey commentedon Jan 29, 2024
This has now been fixed on the Quarto side for 1.5, but we should probably consider if we could work around this issue in RStudio -- I'm not sure what the timeline for a patched Quarto 1.4 (or Quarto 1.5) is.
kevinushey commentedon Jan 29, 2024
As an aside -- it would be helpful if we could get confirmation that Quarto 1.5.5 or newer resolves this issue. These pre-release builds of Quarto are available at https://quarto.org/docs/download/, and RStudio will automatically detect and use these copies of Quarto when available.
guilhermegarcia commentedon Jan 30, 2024
I had a very similar issue last week. Reinstalling RStudio didn't solve it. What did solve it was getting rid of system files that aren't typically deleted when you delete RStudio from a Mac (those in the
Libraryfolder). Reinstalling RStudio after that solved it for me.kevinushey commentedon Mar 23, 2024
This appears to be resolved for me in the latest daily builds of RStudio. (Possibly a dupe of #14325 so perhaps this can be closed outright?)
ronblum commentedon Mar 25, 2024
Confirmed based on the finding in #14325 and with RStudio Desktop 2024.04.0-daily+652 on Windows 11.