Pandoc version 1.12.1502 or higher required

blogdown
#1

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
0 Likes

#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

0 Likes

#3

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"
0 Likes

#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"
0 Likes

#5

Yes it the same path as yours

0 Likes

#6

And where is installed you RStudio IDE ?

If it is the same folder, I think you should try to reinstall.

0 Likes

#7

Just tried reinstalling it. still doesnt work

0 Likes

#8

have you check where the IDE is installed and see if pandoc is in the bin folder ?

0 Likes

#9

its strange, but the pandoc file is not there in the bin folder when i check where the rstudio IDE is installed

0 Likes

#10

It should be included.
Check again this download page
https://www.rstudio.com/products/rstudio/download/

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... :thinking:

0 Likes

#11

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

#12

Just for follow up, it could be related to this issue

0 Likes