【问题标题】:R Shiny: includeMarkdown cannot render htmlwidgetsR Shiny:includeMarkdown 无法呈现 htmlwidgets
【发布时间】:2017-01-03 10:57:27
【问题描述】:

这个 rmd 文件可以正常渲染为 html,但输出为空。与 chartJSRadar 等其他 htmlwidets 相同的问题

文件.rmd:

---
title: "test"
output: html_document 
--- 

```{r}  
rpivotTable::rpivotTable(data.frame(a = c(1:10) ) , rows = 'a'    )
```

这个闪亮的应用程序中缺少 htmlwidget

ui <- shinyUI(
  fluidPage(
    includeMarkdown('file.rmd')
  )
) 
server <- function(input, output) { }  
shinyApp(ui, server)

这个问题与this one有关

【问题讨论】:

    标签: r shiny r-markdown htmlwidgets


    【解决方案1】:

    回答我自己的问题。 includeMarkdown 中的代码不是被 knitr 执行的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-04
      • 1970-01-01
      • 2018-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-13
      • 1970-01-01
      相关资源
      最近更新 更多