### Bug description

Each time I run **quarto render** in RStudio, I always get this error that quarto is unable to find installed version of R. I have attached a screenshot below.


![2023-05-31](https://github.com/quarto-dev/quarto-cli/assets/76583394/3064d3ee-6ea2-41ec-b7ee-274ddaf38593)

**Here is my session info:**

````

R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: Africa/Lagos
tzcode source: internal

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

other attached packages:
[1] quarto_1.2

loaded via a namespace (and not attached):
 [1] digest_0.6.31   later_1.3.1     fastmap_1.1.1  
 [4] xfun_0.39       knitr_1.43      htmltools_0.5.5
 [7] rmarkdown_2.21  ps_1.7.5        cli_3.6.1      
[10] processx_3.8.1  compiler_4.3.0  rstudioapi_0.14
[13] tools_4.3.0     evaluate_0.21   yaml_2.3.7     
[16] Rcpp_1.0.10     rlang_1.1.1     jsonlite_1.8.4 
````

**Here is the output from quarto check:**

````

$ quarto check

[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.2: OK
ERROR: Theme file compilation failed:



Stack trace:


    at dartCommand (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:38385:15)
    at eventLoopTick (ext:core/01_core.js:181:11)
    at async checkVersions (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:85221:26)
    at async check (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:85178:13)
    at async Command.fn (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:85406:5)
    at async Command.execute (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:8105:13)
    at async quarto (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:102325:5)
    at async file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:102343:9
````
**Please I will like to know how I can fix this?**, but I can see that quarto check shows a potential problem that theme file compilation failed but I have struggled for days now and I am unable to fix this. Thank you very much all.



### Steps to reproduce

````

---
title: "Debugging"
author: "Oluwafemi Oyedele"
format: html
editor: visual
---

# Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org/.

# Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

```{r}
1 + 1
```

You can add options to executable code like this

```{r}
#| echo: false
2 * 2
```

The echo: false option disables the printing of code (only output is displayed).
````

### Expected behavior

I expect this document to give me an html output when I run Quato render in RStudio

### Actual behavior

When I render the document in RStudio it will give me an error that quarto is unable to find installed version of R

![2023-05-31](https://github.com/quarto-dev/quarto-cli/assets/76583394/b2a577ab-0a3a-47d4-91e1-c8fdd443359b)


### Your environment

````

R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: Africa/Lagos
tzcode source: internal

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

other attached packages:
[1] quarto_1.2

loaded via a namespace (and not attached):
 [1] digest_0.6.31   later_1.3.1     fastmap_1.1.1  
 [4] xfun_0.39       knitr_1.43      htmltools_0.5.5
 [7] rmarkdown_2.21  ps_1.7.5        cli_3.6.1      
[10] processx_3.8.1  compiler_4.3.0  rstudioapi_0.14
[13] tools_4.3.0     evaluate_0.21   yaml_2.3.7     
[16] Rcpp_1.0.10     rlang_1.1.1     jsonlite_1.8.4 
````

### Quarto check output

````

$ quarto check

[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.2: OK
ERROR: Theme file compilation failed:



Stack trace:


    at dartCommand (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:38385:15)
    at eventLoopTick (ext:core/01_core.js:181:11)
    at async checkVersions (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:85221:26)
    at async check (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:85178:13)
    at async Command.fn (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:85406:5)
    at async Command.execute (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:8105:13)
    at async quarto (file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:102325:5)
    at async file:///C:/Users/USER/AppData/Local/Programs/Quarto/bin/quarto.js:102343:9

````

**But I dont know how to fix the theme file compilation failed**


2023-05-31T07:16:19Z
BB1464
closed
Quarto Unable to locate an installed version of R.
https://github.com/quarto-dev/quarto-cli/issues/5761