Knit fail pandoc error for rmarkdown

rmarkdown
knitr
pandoc
knit

#1

Rstudio 1.1.546
R version 3.4.0

Trying to knit an rmarkdown file but keep running into the error below:

Traceback (most recent call last):
File "c:\users\mfrut\appdata\local\ENTHOU~1\canopy\user\scripts\pandoc-script.py", line 5, in
import subprocess
ImportError: No module named subprocess
Error in strsplit(version_info, "\n")[[1]] : subscript out of bounds
Calls: ... pandoc_available -> find_pandoc -> lapply -> FUN -> get_pandoc_version
In addition: Warning message:
running command '"c:/users/mfrut/appdata/local/ENTHOU~1/canopy/user/scripts/pandoc.exe" --version' had status 1
Execution halted


#2

I don't know what the content of your code looks like, but it seems that you're calling to import a non-existent module in your python script.