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
I had this issue when using a server. I was able to run .Rmd files after installing pandoc through the terminal.
sudo apt-get install pandoc
Then for html output calling the .Rmd with
R -e rmarkdown::render('/path/to/file.Rmd',output_file='/path/to/output.html')
If you are on a windows machine this is the simplest way install pandoc.
install.packages("installr")
library(installr)
install.pandoc()
Opción cuando no se es administrador del equipo:
Paso #1 se identifica la ruta en la que R tiene mapeado Pandoc.
Sys.getenv("RSTUDIO_PANDOC") [1] "C:/Users/Cuenta_Usuario/Documents/rstudio-pandoc"
Paso #2 se verifica que exista el directorio, en caso contrario crearlo.
Paso #3 Descargar la versión más reciente de pandoc https://github.com/jgm/pandoc/releases/tag/2.7.3 en mi caso descargué pandoc-2.7.3-windows-x86_64.zip
Paso #4 descomprimir el archivo .zip en la ruta identificada en el paso #1.
con estos pasos ya me funcionó de manera satisfactoria.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.