Trying to knit a doc into html, RStudio would hang on the conversion to html part. I looked around and it looked like this happened to other folks when they were using an out of date pandoc version. I updated pandoc to 2.8. I received the error in the title. Looking around again, it appeared that v 2.5 seemed stable. I installed that, restarted my computer, and still get the same error.
repex is the default example when you create an RMarkdown file in RStudio: file -> New file -> R Markdown -> html.
---
title: "repexpandocerror23"
author: "Adam Korejwa"
date: "11/22/2019"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for
authoring HTML, PDF, and MS Word documents. For more details on using R
Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that
includes both content as well as the output of any embedded R code chunks
within the document. You can embed an R code chunk like this:
```{r cars}
summary(cars)
```
## Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to
prevent printing of the R code that generated the plot.
dput(head(x))
ordata.frame(x=...,y=...)
), and expected output. Refs: stackoverflow.com/questions/5963269, stackoverflow.com/help/mcve, and stackoverflow.com/tags/r/info. – Skirlingpandoc
, then you might find a difference (on windows) if you runsystem("pandoc --version")
andsystem(paste(file.path(Sys.getenv("RSTUDIO_PANDOC"), "pandoc"), "--version"))
(as RStudio keeps its own version of pandoc installed). – Skirlingsystem
. Trysystem(paste(shQuote(file.path(Sys.getenv("RSTUDIO_PANDOC"), "pandoc")), "--version"))
– Skirlingrmarkdown::pandoc_version()
show you 2.5 or 2.8?) – Skirlingascii_identifiers
is in version 2.8 is withgfm_auto_identifiers
in the presence of emojis, so it doesn't seem like that is going to produce significantly different results. Sorry, I'm running into dead-ends, I just can't reproduce your problem to be able to troubleshoot its cause. – Skirlingxfun::session_info('rmarkdown')
) when reporting issues. My best guess is that you are using an old version of rmarkdown, but it will be much better if we don't have to guess. – Forerun