I am very new to R-studio and I am having a lot of trouble knitting my document. I just got a new computer (I have a macbook pro with an m2 chip) to use for my coding//stats class and it is giving me a lot of issues. The professor and a few other people don't know why this error is occurring.
sh: /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/pandoc: Bad CPU type in executable Error in strsplit(info, "\n")[] : subscript out of bounds Calls: ... pandoc_available -> find_pandoc -> lapply -> FUN -> get_pandoc_version In addition: Warning message: In system(paste(shQuote(path), "--version"), intern = TRUE) : running command ''/Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/pandoc' --version' had status 126 Execution halted.
I tried to run this pandoc_available - > find_pandoc -> lapply -> FUN -> get_pandoc_version but it did not solve the issue.
I would really appreciate the help.