这个rmd文件可以呈现为html,但是shiny中的输出是空的。像chartJSRadar这样的htmlwidet也有同样的问题
file.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相关
发布于 2016-08-28 20:31:27
回答我自己的问题。includeMarkdown中的代码不是由code执行的。
https://stackoverflow.com/questions/39171890
复制相似问题