Find path to the pandoc binary by checking the PATH and the RSTUDIO_PANDOC env vars
PATH
RSTUDIO_PANDOC
Useful links