Error: pandoc version 1.12.3 or higher is required and was not found

Viewed 26

when I try to knit an R markdown to PDF, I get the following error:

Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
Execution halted

However, I have installed pandoc through conda install as well as rstudio through conda. I also have the right version. This can be seen through the following terminal commands:

(base) user@users-MacBook-Pro ~ % which pandoc
/Users/user/opt/anaconda3/bin/pandoc

(base) user@Imads-users-Pro ~ % which rstudio
/Users/user/opt/anaconda3/bin/rstudio

(base) imadahmad@Imads-MacBook-Pro ~ % pandoc --version
pandoc 2.12

How can I get rstudio to recognize my pandoc installation?

0 Answers
Related