【发布时间】:2019-01-26 01:24:28
【问题描述】:
我有 R-markdown 代码,以前可以在我的笔记本电脑上正常工作。我刚刚运行我的代码并收到以下错误。我尝试重新安装 knitr 和 markdown 包,但问题仍然存在。这是错误:
无法更改工作目录 调用: ... withCallingHandlers -> withVisible -> eval -> eval -> setwd 执行停止
这是我的代码的前几行:
---
output:
html_document:
toc: true
number_sections: true
geometry: margin= 0in
include:
after_body: footer.html
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r, echo=FALSE, warning = FALSE, message=FALSE}
#Edit theses values to change it throughout the report
county<-"Butler"
pubDate<- "June 2018"
citeDate<-"2013"
```
```{r, echo=FALSE, warning = FALSE, message=FALSE}
【问题讨论】:
-
这不是一个完整的文档,但它在我的系统上运行良好。当您尝试编织您发布的内容时,您是否收到错误消息?
-
是的,这是我编织成HTML后收到的错误信息。
-
编织原始文档,还是您发布的片段?
标签: r r-markdown knitr