【问题标题】:Flexdashboard - themes and cssFlexdashboard - 主题和 CSS
【发布时间】:2019-07-19 04:27:51
【问题描述】:

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

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

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

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

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

任何想法

【问题讨论】:

    标签: css r r-markdown flexdashboard


    【解决方案1】:

    确保缩进正确:

    output: 
      flexdashboard::flex_dashboard:
        theme: united
    

    【讨论】:

      【解决方案2】:

      title: "Sample Dashboard"
      output: 
        flexdashboard::flex_dashboard:
          theme: spacelab
          vertical_layout: fill
          orientation: columns
      runtime: shiny
      
      ---
      

      可用的主题包括:default、cerulean、journal、flatly、darkly、readable、spacelab、united、cosmo、lumen、paper、sandstone、simplex、yeti。

      【讨论】:

        猜你喜欢
        • 2020-11-04
        • 2016-12-22
        • 1970-01-01
        • 1970-01-01
        • 2018-09-22
        • 1970-01-01
        • 2014-10-12
        • 1970-01-01
        • 2013-12-24
        相关资源
        最近更新 更多