Latest Rstudio version preview 1.2.1502 keeps telling me Pandoc is required whenever i try to use blogdown, pagdown and/or xaringan with .RMD files. Any help please
> xaringan:::inf_mr()
Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
> rmarkdown::pandoc_version()
NULL
cderv
April 17, 2019, 6:28pm
2
This variable should be set in RStudio
Sys.getenv("RSTUDIO_PANDOC")
Does it get you something ?
Pandoc should be included in RStudio installed folder
Yes it does get a path to a folder called Pandoc but i cant find the folder when i look for it.
> Sys.getenv("RSTUDIO_PANDOC")
[1] "C:/Program Files/RStudio/bin/pandoc"
cderv
April 17, 2019, 7:35pm
4
What is the folder ? Is it the one from your last Rstudio installation ?
Mine's is this
Sys.getenv("RSTUDIO_PANDOC")
#> [1] "C:/Program Files/RStudio/bin/pandoc"
Yes it the same path as yours
cderv
April 17, 2019, 7:38pm
6
And where is installed you RStudio IDE ?
If it is the same folder, I think you should try to reinstall.
Just tried reinstalling it. still doesnt work
cderv
April 17, 2019, 7:43pm
8
have you check where the IDE is installed and see if pandoc is in the bin
folder ?
its strange, but the pandoc file is not there in the bin folder when i check where the rstudio IDE is installed
cderv
April 17, 2019, 7:49pm
10
It should be included.
Check again this download page
At least, It is included in the portable bundle - I just checked.
You may have restriction on your PC with an antivirus that may put pandoc into quarantine...
I just downloaded Pandoc from the its website https://github.com/jgm/pandoc/releases/tag/2.7.2 and manually put the pandoc folder in the bin directory.
Working fine now. Thanks
1 Like
cderv
April 20, 2019, 12:05pm
12
Just for follow up, it could be related to this issue
RStudio v. 1.2.1502-1 does not install the pandoc binary folder. This occurred on both Win7 x64 and on Win10 x64 (in a Parallels VM).
Here is a screen shot
[no_pandoc]
Manually creating the pandoc directory and copying the required file fixes the problem.
Per Kevin Ushey, I needed special pandoc binaries (2.7.1), so to be sure this did not cause the problem, I did an uninstall and a clean install of 1502-1 and verified the installer did not install the pandoc binaries...
1 Like
system
Closed
May 12, 2019, 7:20am
14
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.