css - Flexdashboard - 主题和 CSS

标签 css r r-markdown flexdashboard

我正在尝试使用不同的主题来改变 flexdashboard 的外观。由于某些未知原因,选项

output:
    flexdashboard::flex_dashboard:
        theme: <<theme name>>

似乎没有任何变化。输出仍然看起来像默认值。我什至尝试从 flexdashboard 目录复制 css 文件并将链接直接放到文件中

output:
    flexdashboard::flex_dashboard:
        css: <<css file>>

但再次看到没有变化。执行rmarkdown::render时也没有报错。

任何想法

最佳答案

确保缩进正确:

output: 
  flexdashboard::flex_dashboard:
    theme: united

关于css - Flexdashboard - 主题和 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54871777/

相关文章:

r - 在 lapply 函数中访问和保留列表名称

r-markdown - 将类添加到由knitr生成的<img>-标签(Rmd)

r - 如何删除 R Markdown 生成的 HTML 文件左侧的 "padding"

html - CSS 语言讲 : Container vs Wrapper?

r - 如何使用 R 从 .docx 文件中提取纯文本

html - 使用类时 HTML5 字段之间的边距不准确

r - 如何在R中以不同的方式从向量复制字符串?

r - 在 RStudio 中执行 "cannot open the connection"时出现错误 "knit HTML"

html - 带有下拉列表的表体列的位置粘性

html - Twitter 嵌入式使内容下降