[英]Comparison Shiny / rmarkdown::render_site() & flexdashboard
A high level question from someone new to the activity of building websites based on R code: 刚接触基于R代码的网站活动的某人提出了一个高级问题:
I am trying to understand the relationship between Shiny and the facilities offered by rmarkdown to render interactive and/or web content (eg, using rmarkdown::render_site()
, flexdashboard
). 我试图了解Shiny和rmarkdown提供的呈现交互式和/或Web内容的功能之间的关系(例如,使用
rmarkdown::render_site()
, flexdashboard
)。
What triggered this question is reading on the rmarkdown
documentation that: 触发此问题的原因是在
rmarkdown
文档中阅读rmarkdown
内容 :
R Markdown documents are a perfect platform for interactive content.
R Markdown文档是交互式内容的理想平台。
Plus seeing these great dashboards made with flexdashboard
. 加上看到这些由
flexdashboard
制成的出色仪表板 。
To navigate the various options available to building websites based on R code, I would like to know: 为了导航可用于基于R代码构建网站的各种选项,我想知道:
how Shiny
articulates with the capabilities offered by rmarkdown
? Shiny
如何与rmarkdown
提供的功能相rmarkdown
?
how Shiny
programming compares, in terms of ease/scalability/flexibility, with rmarkdown
/ flexdashboard
? Shiny
编程在易用性/可扩展性/灵活性方面与rmarkdown
/ flexdashboard
如何?
I have done a fairly big shiny
app and want to know whether I should try to migrate to eg, flexdahboard
. 我已经做了一个相当大的
shiny
应用程序,想知道我是否应该尝试迁移到flexdahboard
。
Shiny came first, and after a while they added some of shiny's capabilities to markdown. 首先是Shiny,不久之后,他们在markdown中添加了Shiny的一些功能。 In order to use interactive markdowns, notice that you need to use
runtime: shiny
which means that it DOES need shiny to run on the backend, it's no longer than a pure standalone HTML document. 为了使用交互式降价,请注意,您需要使用
runtime: shiny
,这意味着它确实需要Shiny才能在后端运行,它只不过是一个纯独立的HTML文档。
However, what I just said doesn't explain anything about what you asked, just wanted to point that out! 但是,我刚才所说的内容并不能说明您的要求,只是想指出一点! This is indeed a great question, and there is an open issue on shiny's github to try to explain the difference between them, and other similar formats, because I agree it's very overwhelming to see all these options and have to choose which one to go with.
这确实是一个很好的问题, shiny的github上有一个未解决的问题 ,试图解释它们与其他类似格式之间的区别,因为我同意看到所有这些选项并必须选择要使用的选项是非常压倒性的。 Just to add to the complexity - you can in fact write/embed shiny apps inside Rmd documents :)
只是增加了复杂性-实际上,您可以在Rmd文档中编写/嵌入闪亮的应用程序:)
(I couldn't submit this as a comment because it's too long) (我无法提交此评论,因为它太长了)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.