[英]Tabs not rendering when knitting rmarkdown to html
I've been using rmarkdown and knitr to create html output. 我一直在使用rmarkdown和knitr来创建html输出。 Quite suddenly, the
{.tabset}
function seems to have stopped working when knitting, and documents render as they would without this option. 突然间,
{.tabset}
函数在编织时似乎停止了工作,并且文档在没有此选项的情况下呈现。
Here is a simple example that does not work as it should on my system. 这是一个简单的例子,它在我的系统上不能正常工作。
---
title: "Plot Tabs"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
## Title {.tabset .tabset-fade .tabset-pills}
### tab 1
```{r}
plot(cars)
```
### tab 2
```{r}
plot(pressure)
```
I've tested this on another system, and it works fine. 我在另一个系统上测试了这个,它运行正常。 I've also reinstalled R and updated all my packages as well as RStudio.
我还重新安装了R并更新了我的所有软件包以及RStudio。
Does anyone know of any similar issues, or anything that could be causing the problem? 有没有人知道任何类似的问题,或任何可能导致问题的事情?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.