quarto not finding library installed in renv when pressing "render" button in RStudio

I stumbled on an issue where the button "render" for my quarto document located at say /docs/myquarto.qmd would fail telling me that {dplyr} wasnt installed.

Dplyr is clearly installed in my renv.

Solution I went with was to add a an empty files named _quarto.yml at the root of my repo.
Inspired by the discussion here:

Thought I'd share as I was surprised that the quarto render wouldnt figure something like that out since there is an .Rproj file in the root of my repo too.