I found a solution! Even if you didn't create a quarto project per se, but a simple quarto document within an R project, manually make a separate yml file. To do this, create a new text file, copy the text below and save as "_quarto.yml" in the root directory.
project:
execute-dir: project
Link to a simple github repo for illustration purposes.