R标记错误:无法更改';的锁定绑定值;。GlobalEnv';停止执行

R标记错误:无法更改';的锁定绑定值;。GlobalEnv';停止执行,r,rstudio,r-markdown,R,Rstudio,R Markdown,我正在运行RStudio版本1.2.1335,很难将R标记文件编织成HTML。我不知道这个错误消息意味着什么,也不知道解决方案可能是什么。我已经检查并运行了每个块,以确保没有编码错误。我在网上找不到类似的问题。谢谢你的帮助 以下是我的降价文件的示例开始: --- title: "Linking environmental contaminants with hepatic and biliary disease in White perch from Choptank and Severn Ri

我正在运行RStudio版本1.2.1335,很难将R标记文件编织成HTML。我不知道这个错误消息意味着什么,也不知道解决方案可能是什么。我已经检查并运行了每个块,以确保没有编码错误。我在网上找不到类似的问题。谢谢你的帮助

以下是我的降价文件的示例开始:

---
title: "Linking environmental contaminants with hepatic and biliary disease in White perch from Choptank and Severn Rivers"
author:
- Mark Matsche
- Cooperative Oxford Laboratory
- mark.matsche@maryland.gov
date: '`r Sys.Date()`'
output:
  html_document:
    df_print: paged
    fig_caption: yes
    theme: united
    toc: yes
    toc_float: yes
indent: yes
header-includes: \setlength\parindent{24pt}
---
<style type="text/css">

body, td {
   font-size: 12pt;
}
code.r{
  font-size: 16pt;
}
pre {
  font-size: 16pt
}

caption {
      color: black;
      font-weight: bold;
      font-size: 1.0em;
    } 
</style>




```{r setup, include = FALSE}
options(knitr.table.format = "html")
knitr::opts_chunk$set(echo = TRUE)
```

```{r echo=FALSE, include= FALSE, message= FALSE, warning= FALSE}

# This function will load packages.

library(tidyverse)
library(readxl)
library(kableExtra)
library(knitr)
library(ggplot2)
library(png)
library(tinytex)
library(scales)
library(grid)
library(svglite) # needed to save vector graphics
library(broom)
library(lemon)
#library(plyr)
#library(rms)
#library(GGally)
#library(car) #need for calculating vifs
#library(leaps) #stepwise regression
#library(DAAG) #need for doing cross validation
#library(rms) #check structural form
#library(ROCR) #compute sensitivity and specificity
```
```{r readxl, echo=FALSE}
Alldata<-read_excel("Data12Aug.xlsx")
```
---
标题:“Choptank河和Severn河白鲈鱼中环境污染物与肝胆疾病的联系”
作者:
-马克·马切
-牛津合作实验室
-马克。matsche@maryland.gov
日期:''r Sys.date()`'
输出:
html_文件:
df_打印:第页
图片说明:是的
主题:联合国
toc:是的
toc_浮动:是的
缩进:是的
标题包括:\setlength\parindent{24pt}
---
身体,td{
字号:12号;
}
代码r{
字号:16pt;
}
前{
字号:16pt
}
标题{
颜色:黑色;
字体大小:粗体;
字号:1.0em;
} 
```{r设置,include=FALSE}
选项(knitr.table.format=“html”)
knitr::opts_chunk$set(echo=TRUE)
```
```{r echo=FALSE,include=FALSE,message=FALSE,warning=FALSE}
#此函数将加载包。
图书馆(tidyverse)
图书馆(readxl)
图书馆(kableExtra)
图书馆(knitr)
图书馆(GG2)
图书馆(png)
图书馆(tinytex)
图书馆(比例尺)
图书馆(网格)
库(svglite)#需要保存矢量图形
图书馆(扫帚)
图书馆(柠檬)
#图书馆(plyr)
#图书馆(rms)
#图书馆(GGALY)
#图书馆(汽车)#需要计算振动频率
#图书馆(飞跃)#逐步回归
#图书馆(DAAG)#需要进行交叉验证
#图书馆(rms)#检查结构形式
#库(ROCR)#计算灵敏度和特异性
```
```{r readxl,echo=FALSE}

AlldataIt’如果您包含一个简单的示例输入,并且可以用于测试和验证可能的解决方案,那么它将更容易帮助您。错误消息本身并不总是足够具体,无法说明发生了什么。好的,对不起。刚刚编辑以包含我的标记文件的开头。您共享的代码是否足以触发错误消息?我似乎没有收到那个错误。是的,我收到了那个代码的错误。我还创建了一个新的标记文件,并以不变的方式运行它,我收到了相同的错误消息。也许是关于我的RStudio是如何设置的?我可以在一个常规的R文件中运行代码块而不会出错。我还可以在Rmarkdown中单独运行块。只有当我尝试编织时,我才会收到这个错误。