Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rmarkdown not working due to pandoc

Tags:

r

rstudio

Hi I just updated my version of RStudio and now I cannot create markdown files. I upgraded RStudio to verion: 1.0.136

My version of R is 3.2.5. 

Version of these packages:
knitr: 1.15.1
rmarkdown: 1.4

Note I already installed MikTEX and it was working just fine. I was craeted markdown documents.

Now I Simply create a new r markdown pdf file and click knit and I get this error:

pandoc version 1.12.3 or higher is required and was not found

What do I need to do to get knit to run?

when I run

> pandoc_available(version = NULL, error = FALSE)
[1] FALSE
> 
> pandoc_version()
NULL
like image 339
user3022875 Avatar asked Oct 23 '25 17:10

user3022875


1 Answers

If you are on a windows machine this is the simplest way install pandoc.

install.packages("installr")
library(installr) 

install.pandoc()
like image 112
Ian Wesley Avatar answered Oct 25 '25 06:10

Ian Wesley