-
Notifications
You must be signed in to change notification settings - Fork 389
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Description
Quarto fails to render any R document with the error "Problem with running R...". This happens even with a minimal test file in a clean directory.
System Details
- OS: Windows 11 Home, Version 24H2, Build 26100.xxxx
- R Version: 4.5.1 (64-bit)
- Quarto Version: [1.7.34 and 1.8.24]
Extensive Troubleshooting Steps Performed
The R installation itself has been verified to be 100% functional. The issue seems to be specific to how Quarto tries to execute Rscript.
- Confirmed 64-bit R installation is working perfectly via command line (
Rscript --version). - Performed a full clean reinstall of R, including manual registry cleanup.
- Ruled out OneDrive folder redirection by setting the R_USER environment variable.
- Established a robust, custom R library path (
C:\R\library) via.Rprofile. - Performed a full clean reinstall of Quarto, including manual deletion of the
%LOCALAPPDATA%\quartocache. - Confirmed the issue persists with antivirus/Windows Defender temporarily disabled.
- The error occurs even with a minimal "Hello World" .qmd file in a root directory (
C:\test).
Diagnostic Log
Quarto version: 1.7.34
Loaded deno-dom-native
-- Searching for R binary --
Looking for 'Rscript' in QUARTO_R: undefined
Looking for 'Rscript' in R_HOME: undefined
Looking for 'Rscript' in PATH.
[execProcess] CMD /C where Rscript
[execProcess] Success: false, code: 1
Looking for 'Rscript' in Windows Registry.
[execProcess] reg query HKCU\Software\R-core\R /v Current Version
[execProcess] Success: false, code: 1
[execProcess] reg query HKLM\Software\R-core\R /v Current Version
[execProcess] Success: false, code: 1
Looking for 'Rscript' in Windows PROGRAMFILES.
Found C:\Program Files\R\R-4.5.1\bin
[execProcess] C:\Program Files\R\R-4.5.1\bin\Rscript C:\Program Files\Quarto\share\rmd\rmd.R
1
/2
2/2 [unnamed-chunk-1]
output file: test.knit.md
[execProcess] Success: false, code: -1073741569
[execProcess] C:\Program Files\R\R-4.5.1\bin\Rscript --version
[execProcess] Success: true, code: 0
++R found at C:\Program Files\R\R-4.5.1\bin\Rscript is working.
-- Checking knitr engine capabilities --
[execProcess] C:\Program Files\R\R-4.5.1\bin\Rscript C:\Program Files\Quarto\share\capabilities\knitr.R
[execProcess] Success: false, code: -1073741569
++ Problem with results of knitr capabilities check.
Return Code: -1073741569 (success is false)
with stdout from R:
--- YAML_START ---
versionMajor: 4
versionMinor: 5
versionPatch: 1
home: C:/PROGRA~1/R/R-45~1.1
libPaths:
- "C:/R/library"
- "C:/Users/mstrm/AppData/Local/R/win-library/4.5"
- "C:/Program Files/R/R-4.5.1/library"
packages:
knitr: "1.50"
rmarkdown: "2.29"
--- YAML_END ---
Problem with running R found at C:\Program Files\R\R-4.5.1\bin\Rscript to check environment configurations.
Please check your installation of R.
[NotebookContext]: Starting CleanupSteps to reproduce
---
title: "Test"
format: html
---
## Quarto Test
```{r}
2 + 2
```
The end.Actual behavior
No response
Expected behavior
No response
Your environment
No response
Quarto check output
C:\Users\mstrm>quarto check
Quarto 1.7.34
[>] Checking environment information...
Quarto cache location: C:\Users\mstrm\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.85.1: OK
Deno version 1.46.3: OK
Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.7.34
Path: C:\Program Files\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Tex: (not detected)
[>] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: C:\Program Files\Google\Chrome\Application\chrome.exe
Source: Windows Registry
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....(None)
Unable to locate an installed version of Python 3.
Install Python 3 from https://www.python.org/downloads/
[>] Checking R installation...........(None)
R succesfully found at C:\Program Files\R\R-4.5.1\bin\Rscript.
However, a problem was encountered when checking configurations of packages.
Please check your installation of R.
C:\Users\mstrm>