Hi,
I am wondering how quarto looks for an R installation in Windows.
I am getting an "Unable to locate an installed version of R." error, even though R, Rterm and Rscript are all in the system path.
quarto check
also shows
[>] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
It's actually kind of weird, because if I run
quarto preview doc.qmd --no-browser --no-watch-inputs
It successfully renders the document into the first output format in it (revealjs). But if I try to render it into docx, it fails.
quarto preview doc.qmd --no-browser --no-watch-inputs --to docx
So I am wondering how quarto looks for an R installation.
Does quarto always look for R in the Program Files folder?
I ask because I use scoop to install R, so quarto cannot find R in the Program Files. But R is indeed in the path. I also use scoop to install python, and in that case, quarto has no problems finding it.
So I am puzzled. Any ideas/explanaition would be most appreciated. Thx.