【问题标题】:RStudio "Run Document" not producing an html fileRStudio“运行文档”不生成html文件
【发布时间】:2020-02-19 19:31:02
【问题描述】:

我一直在 RMarkdown 中编写 flexdashboard 脚本,但是“运行文档”按钮不会生成实际的 html 文件,只是预览。 “运行文档”按钮右侧的齿轮箱没有让我选择生成 html 文件。它只是说在窗口中预览、在查看器窗格中预览或不预览。

脚本如下所示

---
title: "dashboard title"
output:
  flexdashboard::flex_dashboard:
    orientation: rows
    vertical_layout: scroll
    theme: cerulean
runtime: shiny
---

任何关于正在发生的事情的帮助将不胜感激!

【问题讨论】:

  • 试试“编织”按钮。可能在左侧
  • 添加运行时:shiny 会从 .Rmd 文件中移除 knit 按钮。
  • 我的意思是它从 RStudio 中删除了它

标签: r shiny r-markdown flexdashboard


【解决方案1】:

您可以尝试rmarkdown::render_site(),如example 或:

  • knitr::kable()
  • 你也可以试试htmltools package

【讨论】:

    猜你喜欢
    • 2016-07-10
    • 2016-06-26
    • 2015-02-22
    • 2010-09-27
    • 2023-03-25
    • 2019-04-17
    • 2020-07-21
    • 2012-03-27
    • 1970-01-01
    相关资源
    最近更新 更多