Ошибка разметки R: невозможно изменить значение заблокированной привязки для «.GlobalEnv». Выполнение остановлено. - PullRequest
0 голосов
/ 21 января 2020

Я использую 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")
```
...