首页 > 解决方案 > Flexdashboard CSS 不正确

问题描述

我以前使用 R 3.3.2 并构建了一个运行良好的 Flexdashboard,但是在升级到 R 3.4 之后,输出 html 文件的 CSS 出于某种原因全都错了。渲染时没有任何错误消息,我无法找出导致问题的原因。我已经尝试将rmarkdownflexdashboard更新到最新的 CRAN 版本。

这是它之前的样子: 应用了默认样式

现在是这样的: 没有样式和内容可见性设置为隐藏

我也可以用一个最小的例子来复制它:

---
title: "Test Markdown"
output: 
  flexdashboard::flex_dashboard
---

### This is a header
This is some text

我使用以下方法运行它:

rmarkdown::render("TestMD.Rmd")

这是我从中得到的sessionInfo()

R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_3.4.4        backports_1.1.2       magrittr_1.5          
rprojroot_1.3-2       htmltools_0.3.6       tools_3.4.4          
 [7] flexdashboard_0.5.1.1 yaml_2.1.18           Rcpp_0.12.16          stringi_1.1.7         rmarkdown_1.10        knitr_1.20           
[13] jsonlite_1.5          stringr_1.3.0         digest_0.6.15         evaluate_0.10.1   

最小的例子是这样的: 没有样式了

标签: flexdashboard

解决方案


推荐阅读