r - 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.
解决方案
两个月前我已经解决了这个问题。请确保您的rmarkdown版本至少为 v1.16。再一次,当有疑问时,考虑更新你的包:
update.packages(ask = FALSE, checkBuilt = TRUE)
推荐阅读
- haskell - Haskell 使用 OverloadedStrings,但仍然出现 [Char] 错误
- perl - 如何在 YAML 中声明列表并使用 PERL YAML::XS 读取
- automation - 有人可以分享如何在任何地方自动化合并多个excel文件。我想创建自己的而不是使用机器人商店?
- python-3.x - 不可散列的类型:检查密钥是否存在时出现“dict”错误
- javascript - 您可以有条件地运行 if 语句的一部分吗?
- python - 从现有的 Pandas DataFrame 创建一个新的 Pandas DataFrame
- javascript - 推送通知删除订阅
- google-sheets - 计算跨越两个不同年份的两个日期之间每个月的天数
- sass - Increment headings and variables using a for loop that apply's font-size in scss
- ruby-on-rails - 不能在葡萄异常上使用 Rails http 状态?