【发布时间】:2017-09-26 10:18:26
【问题描述】:
我将把从 shiny 生成的图传递给 rmarkdown 以生成 html 报告。问题是 rmarkdown 文档的 params 中接受了 wordcloud 和饼图。
问题:如何通过闪亮的方式在渲染的 html 中传递 wordcloud 和饼图?
abc.Rmd
title: "Report using R Markdown"
subtitle: "ABC "
author: "Author name"
output:
prettydoc::html_pretty:
theme: architect
params:
wc : 'NULL'
table: 'NULL'
pie: 'NULL'
app.R(sn-p)
rmarkdown::render(input = "report.Rmd",
output_file = "report.html",
params = list(wc=getWordcloud(),
table=getTab(),
pie=getPie()))
注意:getWordcloud()、getTab()、getPie() 函数在闪亮的应用程序中完美地返回绘图。
【问题讨论】:
-
你有什么问题?
-
wc,pie 的值在 rmarkdown 中显示为 NULL,即使我在应用程序的服务器端将绘图作为参数传递
标签: r r-markdown shiny