### Bug description

Quarto is failing to find the R installation on my machine.  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.
cscheid
2023-03-23T10:47:46Z
s-andrews
enhancement early-in-release quarto-check
v1.4
open
Quarto unable to locate R
https://github.com/quarto-dev/quarto-cli/issues/4930