How to install Pandoc for Windows?

I have been to their website. I have viewed a YouTube on a related subject. And, so far I don't really get it. My objective is to use Pandoc in conjunction with R Markdown to convert R Markdown HTML document into either Word or Pdf files.


You can install pandoc in several ways:

  1. Using the x86 or x64 executable from here and installng like any other Windows app: pandoc downloads

  2. Using the x86 or x64 flavor of the zip file (same link shown above), and unpack it on the folder of your preference. Then, set manually the path to that folder. Pandoc is only a couple of files pandoc.exe and pandoc-citeproc.exe. You may even copy then to your /bin folder of your preference if want to save adding another PATH.

  3. Using the R package installr, and then run installr::install.pandoc(). It will automatically install the Windows msi and add the PATH for you. You may review the user path in environment variables: C:\Users\user_name\AppData\Local\Pandoc\.

Reload the environment variables by restarting your PC.


If you have RStudio installed (and most R users do) then you already have a pandoc binary. Maybe just add that directory to your $PATH ?