Quarto unable to locate R installation on RStudio Win10

I checked on other topics for the same issue but did not find answer for my case.

I'm using RStudio 2022.07.2 with R 4.2.1 on Windows 10.
I installed Quarto 1.1.251 and also tried the pre-release 1.2.174 with no success.

When I try to render the example from the R Quarto website ("Penguins, meet Quarto!"), here's the message I get (as the other people having this issue I guess):

Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Execution halted
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Execution halted

Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/

R is well installed and I can render with Bookdown with no issue at all.

Here's my quarto check:

$ quarto check

[>] Checking Quarto installation......OK
      Version: 1.2.174
      Path: [...]\Programs\Quarto\bin
      CodePage: [...]

[>] 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...........Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Execution halted
[>] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

(I hided paths and numbers with [...].)

I can create a Quarto document using RStudio but I can not see the Quarto tab in the global options of RMarkdown:

image

Unlike this post, my R Markdown installation seems to be working well.

Do you have an advice to solve this issue? Thanks a lot!

This is a puzzling error... :thinking:

Can you try with a newer pre-release version in case it was something transient ? Pre release versions move fast.

Also please can you check you .Rprofile. It would be executed by Quarto first when running R

Thank you very much for your answer. I'm sorry though I think I don't know how to configure/check the .Rprofile file. I do only some programming with the tidyverse so far.

Here's what it looks like, no mention of Quarto in it:

# REMEMBER to restart R after you modify and save this file!

# First, execute the global .Rprofile if it exists. You may configure blogdown
# options there, too, so they apply to any blogdown projects. Feel free to
# ignore this part if it sounds too complicated to you.
if (file.exists("~/.Rprofile")) {
  base::sys.source("~/.Rprofile", envir = environment())
}

# Now set options to customize the behavior of blogdown for this project. Below
# are a few sample options; for more options, see
# https://bookdown.org/yihui/blogdown/global-options.html
options(
  # to automatically serve the site on RStudio startup, set this option to TRUE
  blogdown.serve_site.startup = FALSE,
  # to disable knitting Rmd files on save, set this option to FALSE
  blogdown.knit.on_save = TRUE,
  # build .Rmd to .html (via Pandoc); to build to Markdown, set this option to 'markdown'
  blogdown.method = 'html'
)

# fix Hugo version
options(blogdown.hugo.version = "0.89.1")

This topic was automatically closed 42 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.