R Markdown 未呈现 Table 的内容或标签集

R Markdown is not rendering Table of Contents or Tabsets

尝试在 headers 下用 table 内容和标签集在 R markdown 中格式化 html 文档。使用备忘单、书籍和在线资源,我认为应该正确设置。但是它似乎无法正确呈现

我试过一次做一个,但都不行。我什至准确地复制了代码并进行了渲染,但它并没有显示出来。

我已经重新安装了 knitr 和 rmarkdown 软件包,但没有用。

我是运行 R 5.35.1

---
title: Water Conditions and Operations
date: "`r Sys.Date()`"
output: 
  html_document:
    toc: true
    toc_depth: 3
    toc_float: 
      collapsed: true
      smooth_scroll: true 
---


```{r}
```

## Kings River   

<center>
Insert Image
</center>


### Pine Flat {.tabset}    



#### Daily  

hi  

#### Weekly  

hi  

#### Monthly  

hi  

### Upstream {.tabset}  

#### Daily

#### Weekly

#### Monthly

## State Water Project 

### Precipitation

### Snow

```{r}

```


[Kings River]

我希望有一个标签集,就像我在闪亮的应用程序上所做的那样。但这些只是正常显示 headers

解决了问题:

  • 已卸载 R
  • 已卸载 R Studio
  • 已删除这些程序的所有程序文件目录
  • 安装了最新版本的 R 和 R Studio

编织到 html 并且成功了