Shiny互动组件在Flexdashboard中未加载。

huangapple go评论86阅读模式
英文:

Shiny Interactive Components Not Loading in Flexdashboard

问题

我正在尝试创建一个包含一些Shiny交互组件的flexdashboard,但是我的Shiny组件没有按预期加载。当我直接“运行文档”flexdashboard时,Shiny组件可以正常工作。但是,如果我尝试通过以下代码从控制台运行它:

rmarkdown::run("testing.Rmd", shiny_args = list(port = 5050, host = "0.0.0.0"))

通过控制台这样做的目标是通过LAN网络共享Shiny仪表板,如此处描述的那样:
text

Shiny图形不会显示,而我的非Shiny图形会加载。

非常感谢任何见解/解决方案!我尝试使用非常小的数据集进行了尝试,并遇到了相同的问题。我相信rmarkdown::run代码中存在某些不足之处。

英文:

I'm trying to create a flexdashboard with some Shiny interactive components, but my Shiny components are not loading as expected. When I directly "Run Document" the flexdashboard with Shiny components works perfectly fine. However, if I try to run it from console through the following code:

rmarkdown::run("testing.Rmd", shiny_args = list(port = 5050, host = "0.0.0.0"))

The goal of doing this through console was to have the potential to share the shiny dashboard via LAN network as described here:
text

The Shiny graph does not appear, while my non-Shiny graphs do load.

Any insight/solution is greatly appreciated!

I've tried messing around with a very small data set, and I encounter the same problem. I believe there is something lacking in the rmarkdown::run code.

答案1

得分: 0

检查一下你的YAML。当我遇到相同的问题时(这里),修复方法是在 runtime: shiny 前删除一个缩进。

英文:

Check out your YAML. When I had the same issue (here), the fix ended up being removing an indent before runtime: shiny

huangapple
  • 本文由 发表于 2023年7月7日 03:19:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76631944.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定