Unicode 转义字符 U+001B 编织 .rmd 到 .pdf 时出错

Ani*_*bot 5 r unicode-escapes knitr r-markdown tinytex

当尝试编织我的 rmd 文件时,我收到此错误 -

! LaTeX Error: Unicode character ^^[ (U+001B)
           not set up for use with LaTeX.

Error: LaTeX failed to compile Task1-Final.tex. See 
https://yihui.org/tinytex/r/#debugging for debugging tips. See Task1-Final.log for 
more info.
Execution halted
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

Mic*_*ael 2

我似乎能够通过 dplyr 生成的警告重现此错误。这是一个将创建此内容的 Rmarkdown 文档:

---
title: "special_i"
author: "Michael Roswell"
date: "2023-02-24"
output: 
  pdf_document: 
    latex_engine: pdflatex
---
seems like the dplyr warning message creates problems with 

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(dplyr)
```
```{r create a warning}


mtcars[1,"carb"] <- NA
mtcars %>% summarize_all(sqrt)

```
Run Code Online (Sandbox Code Playgroud)

我通过在编织到 .pdf 时静音警告来解决问题(html 渲染良好)。