我正在尝试用Posterdown 来编译海报。它大约一周前运行,我尝试删除我在中间添加的文本,看看这是否是问题所在,但似乎不是。
以下是我收到的错误消息:
pandoc: Cannot decode byte '\x80': Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream
Error: pandoc document conversion failed with error 1
Closing browser
Cleaning browser working directory
Execution halted
这是我的.Rmd:
的开始---
title: <div style='margin:50px'> Our title</div>
font_family: Calibri
poster_height: "47.24in"
poster_width: "35.43in"
author:
- name: Author1 Name
- name: Author2 Name
- name: Author3 Name
column_numbers: 2
#logoleft_name: ./figures/phase.png
title_textsize: "78px"
author_textsize: "32px"
affiliation_textsize: "15px"
body_textsize: "40px"
output:
posterdown::posterdown_html:
self_contained: true
knit: pagedown::chrome_print
bibliography: packages.bib
---
\```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, encoding = 'UTF-8')
\```
(Above, I do not truly have the "\" characters, I just added it to post the question to stack overflow.)
# Title1
The only special character I am using in the poster is the sign '%'.
有什么想法吗?预先感谢您的帮助!
我在 Rstudio 上的 Quarto 项目中遇到了完全相同的问题。一周前渲染工作正常,现在我遇到了同样的错误。也尝试恢复到早期版本,但我仍然遇到相同的错误。
你找到解决办法了吗?
干杯,麦克斯