Issues with Rmarkdown Knit project

From the terminal

which R

will show you the first version in your $PATH

What I did for Quarto/pandoc was to install those separately. q3uarto and pandoc. Then I created a ~/.Renviron file

───────┬──────────────────────────────────────────────────────────────
       │ File: .Renviron
───────┼──────────────────────────────────────────────────────────────
   1   │ PATH=/Users/ro/.nvm/versions/node/v18.9.1/bin:/opt/homebrew/C
       │ ellar/python@3.10/3.10.9/bin:/Applications/CMake.app/Contents
       │ /bin:/opt/homebrew/bin:/Users/ro/.cargo/bin:/Applications/Jul
       │ ia-1.8.app/Contents/Resources/julia/bin/julia:/usr/local/go/b
       │ in:/Users/ro/.fig/bin:/usr/local/mysql-8.0.28-macos11-x86_64/
       │ bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/Users/ro/.l
       │ ocal/bin
   2   │ R_INCLUDE_DIR=/Library/Frameworks/R.framework/Resources/inclu
       │ de
   3   │ R_LIBS_SITE=/Library/Frameworks/R.framework/Resources/library
       │
   4   │ R_LIBS_USER =/Library/Frameworks/R.framework/Resources/librar
       │ y
   5   │ RSTUDIO_PANDOC=/usr/local/bin/pandoc
   6   │ RSTUDIO_QUARTO=/usr/local/bin/quarto
   7   │
───────┴──────────────────────────────────────────────────────────────

where $PATH is taken from the terminal command

echo $PATH