首页 > 解决方案 > RStudio 中的编织错误:pandoc 转换失败,出现错误 23。markdown 不支持扩展 ascii_identifiers

问题描述

尝试将文档编入 html 时,RStudio 会挂起转换为 html 的部分。我环顾四周,似乎其他人在使用过时的 pandoc 版本时发生了这种情况。我将 pandoc 更新到 2.8。我收到标题中的错误。再次环顾四周,v 2.5 似乎很稳定。我安装了它,重新启动了我的计算机,但仍然得到同样的错误。

repex 是在 RStudio 中创建 RMarkdown 文件时的默认示例:文件 -> 新文件 -> 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.

标签: rrstudioknitrpandoc

解决方案


两个月前我已经解决了这个问题。请确保您的rmarkdown版本至少为 v1.16。再一次,当有疑问时,考虑更新你的包

update.packages(ask = FALSE, checkBuilt = TRUE)

推荐阅读