flexdashboard - Flexdashboard CSS 不正确
问题描述
我以前使用 R 3.3.2 并构建了一个运行良好的 Flexdashboard,但是在升级到 R 3.4 之后,输出 html 文件的 CSS 出于某种原因全都错了。渲染时没有任何错误消息,我无法找出导致问题的原因。我已经尝试将rmarkdown和flexdashboard更新到最新的 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
最小的例子是这样的: 没有样式了
解决方案
推荐阅读
- c# - 如何将作用域 DbContext 添加到使用 EntityFrameworkCore 和 SSH 隧道进入 MySQL 的 ASP NET Core API 控制器?
- python - 无论它们是作为位置参数还是关键字参数传递,都可以不可知地提取 unittest.mock 调用参数
- python - 变量名内的变量字符串
- python-3.x - 从 2 点和一个角度得到 tird 的位置
- javascript - 如何将 react.js 文件的 HTML 部分用于另一个 react.js 文件
- reactjs - 是否有任何 eslint 规则可以防止“对象作为 React 子项无效”
- r - 有没有办法在“spatstat”包中使圆盘图的多边形边界不可见?
- javascript - 如何将共享多个属性的公共属性的数据组合在一起
- python - Python 行为 - JSONDecodeError
- android - 减少使用 Mesibo 的 APK 大小