问题描述
我直接在 RStudio 中使用 redoc 输出从 rmarkdown 文件创建了一个 word 文件,然后单击“knit”。这工作正常。
---
title: "Untitled"
output:
redoc::redoc
---
```{r setup,include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## GitHub Documents
This is an R Markdown format used for publishing markdown documents to GitHub. When you click the **Knit** button all R code chunks are run and a markdown file (.md) suitable for publishing to GitHub is generated.
## Including Code
You can include R code in the document as follows:
```{r cars}
summary(cars)
```
但是尝试将其转换回 Rmd 会引发错误。其他人有吗?
redoc::dedoc(docx = "test.docx",overwrite = TRUE)
Error in convert_docx_to_md(docx,track_changes,wrap,verbose,md_only) :
lazy-load database '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/R/rmarkdown.rdb' is corrupt
In addition: Warning messages:
1: In convert_docx_to_md(docx,md_only) :
restarting interrupted promise evaluation
2: In convert_docx_to_md(docx,md_only) :
internal error -3 in R_decompress1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)