I'm trying to use quarto and can't get it to run as it won't locate my version of R.
R is found OK by RStudio and quarto fails both inside and outside RStudio. R is in the PATH and launches OK from a shell.
E:\>quarto check
[>] Checking Quarto installation......OK
Version: 1.2.335
Path: C:\Program Files\RStudio\resources\app\bin\quarto\bin
CodePage: 1252
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.9.6
Path: C:/Program Files/Python39/python.exe
Jupyter: 5.3.0
Kernels: python3
[>] Checking Jupyter engine render....OK
[>] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
E:\>where R
C:\Users\andrewss\AppData\Local\Programs\R\R-4.2.3\bin\x64\R.exe
E:\>R --version
R version 4.2.3 (2023-03-15 ucrt) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
This is using RStudio v2023.03.0
Any ideas for what else I need to do to make quarto find R?
I would try to add the file location of R to the PATH environment variable. It is a pretty harmless operation and easy to back out.
Thanks, but I've done that already and R is found and launches fine from the shell (see the end of the trace I included). Despite this quarto still doesn't seem to be able to find it.
cderv
March 28, 2023, 9:11am
4
For reference, this has been asked in Github too - we'll follow up there
opened 10:47AM - 23 Mar 23 UTC
enhancement
early-in-release
quarto-check
### Bug description
Quarto is failing to find the R installation on my machin… e. This fails from within R studio and when run from a shell. R is in the PATH and works as expected. R works fine within RStudio and compilation with RMarkdown also works.
```
E:\>set QUARTO_LOG_LEVEL=DEBUG
E:\>quarto check
[>] Checking Quarto installation......OK
Version: 1.2.335
Path: C:\Program Files\RStudio\resources\app\bin\quarto\bin
CodePage: 1252
Loaded deno-dom-native
(-) Checking basic markdown render....[trace] Parsed [Plain [Str "long"]] at line 1
[trace] Parsed [Plain [Str "en"]] at line 1
[trace] Parsed [Plain [Str "true"]] at line 1
[trace] Parsed [Plain [Str "1.2.335"]] at line 1
[trace] Parsed [Plain [Str "Title"]] at line 1
[trace] Parsed [Plain [Str "Table",Space,Str "of",Space,Str "contents"]] at line 1
[trace] Parsed [] at line 5
[trace] Parsed [Header 2 ("header",[],[]) [Str "Header"]] at line 8
Loaded deno-dom-native
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.9.6
Path: C:/Program Files/Python39/python.exe
Jupyter: 5.3.0
Kernels: python3
(-) Checking Jupyter engine render....Loaded deno-dom-native
(/) Checking Jupyter engine render....[trace] Parsed [Plain [Str "long"]] at line 1
[trace] Parsed [Plain [Str "en"]] at line 1
[trace] Parsed [Plain [Str "true"]] at line 1
[trace] Parsed [Plain [Str "1.2.335"]] at line 1
[trace] Parsed [Plain [Str "Title"]] at line 1
[trace] Parsed [Plain [Str "Table",Space,Str "of",Space,Str "contents"]] at line 1
[trace] Parsed [] at line 4
[trace] Parsed [Header 2 ("header",[],[]) [Str "Header"]] at line 6
[trace] Parsed [CodeBlock ("",["python","cell-code"],[]) "1 + 1"] at line 11
[trace] Parsed [CodeBlock ("",[],[]) "2"] at line 15
[trace] Parsed [Div ("",["cell-output","cell-output-display"],[("execution_ at line 16
[trace] Parsed [Div ("",["cell"],[("execution_count","1")]) [CodeBlock ("", at line 20
Loaded deno-dom-native
[>] Checking Jupyter engine render....OK
[>] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
```
So this fails. but R is definitely there and works.
```
C:\>where R
C:\Users\andrewss\AppData\Local\Programs\R\R-4.2.3\bin\x64\R.exe
C:\>R --version
R version 4.2.3 (2023-03-15 ucrt) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
```
This even fails if I explicitly set QUARTO_R
```
C:\>set QUARTO_R="C:\Users\andrewss\AppData\Local\Programs\R\R-4.2.3\bin\x64\R.exe"
C:\>echo %QUARTO_R%
"C:\Users\andrewss\AppData\Local\Programs\R\R-4.2.3\bin\x64\R.exe"
C:\>quarto check
[>] Checking Quarto installation......OK
Version: 1.2.335
Path: C:\Program Files\RStudio\resources\app\bin\quarto\bin
CodePage: 1252
[Removed non-R stuff]
[>] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
```
There are no files relating to R in the quarto log directory.
```
C:\Users\andrewss\AppData\Local\quarto\logs>dir
Volume in drive C has no label.
Volume Serial Number is 0A21-80E0
Directory of C:\Users\andrewss\AppData\Local\quarto\logs
22/03/2023 10:10 <DIR> .
22/03/2023 10:10 <DIR> ..
22/03/2023 10:10 0 jupyter-kernel.log
1 File(s) 0 bytes
2 Dir(s) 59,993,976,832 bytes free
```
If it matters, the version of RStudio is 2023.03.0
OS is Windows10.
### Checklist
- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
1 Like
system
Closed
April 18, 2023, 9:11am
5
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.