当我在 RStudio 中更改 css 文件时,inf_mr 会刷新 (xaringan) 吗?

Does inf_mr refresh (xaringan) when I change the css file in RStudio?

这是我的 Rmd 代码:

---
title: "example"
author: "Example"
date: "02/03/2021"
output: html_document
css: "style2.css"
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)

library(xaringan)



```

## R Markdown

This is an R Markdown  Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R ffgfghfghfhewqewqweqeMarkdown seesaSASsSAasdgf <http://rmarkdown.rstudio.com>.
asSSAsS
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

```{r cars}
summary(cars)
```

这是我的 CSS 文件代码:

.container-fluid{
  border:  25px solid lightblue;}

我认为当我 change/edit 然后保存 CSS 文件时,Rmarkdown 产生的 Html 输出也会更新。但它并没有发生。

在 CSS 文件 update/edit 之后,有什么方法可以刷新 html 吗?

或者 xaringan::inf_mr() 提供的刷新要求我在 CSS 文件 edit/update 之后保存 Rmd 文件?

非常感谢

inf_mr() 只能检测正在呈现的文档中的更改。处理此问题的一种方法是在编写幻灯片时将 css 包含在 css 块中,然后再添加到单独的文件中。

---
title: "example"
author: "Example"
date: "02/03/2021"
output: html_document
css: "style2.css"
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)

library(xaringan)
```

```{css}
.container-fluid{
  border:  25px solid blue;}
```

## R Markdown

This is an R Markdown  Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R ffgfghfghfhewqewqweqeMarkdown seesaSASsSAasdgf <http://rmarkdown.rstudio.com>.
asSSAsS
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

```{r cars}
summary(cars)
```