简体   繁体   English

多个闪亮的应用程序用于闪亮的仪表板输入和部署在不同的液滴上

[英]Multiple shiny apps used for shiny dashboard inputs and deployment on different droplets

So i have a dashboard but i wish to break this dashboard into smaller apps. 所以我有一个仪表板,但我希望将此仪表板分解为较小的应用程序。 The smaller apps will provide inputs into the dashboard. 较小的应用程序将向仪表板提供输入。

I have set up a droplet/shiny server. 我已经建立了一个Droplet / Shiny服务器。 How would i go about doing this? 我将如何去做? The dashboard and apps would need to be on the server so i can embed them on the website. 仪表板和应用程序需要在服务器上,以便我可以将它们嵌入网站上。

In essence, the question is too broad as it is right now. 从本质上讲,这个问题太过广泛了。 Here are a few pointers to get you going: Since each shiny app "lives" on its own, they can't communicate directly with one another. 以下是一些帮助您入门的指示:由于每个闪亮的应用程序都“独立存在”,因此它们无法直接相互通信。

What you can do is to have a service which all the apps can talk to, ie, some kind of data base. 您可以做的是拥有所有应用程序都可以交谈的服务,即某种数据库。 Once an app changes a status/field/table in the data base, the other apps see that and react accordingly. 一旦一个应用程序更改了数据库中的状态/字段/表,其他应用程序就会看到该状态并做出相应的反应。

I'm pretty sure you can accomplish this with a remote storage, not sure about local storage though. 我很确定您可以使用远程存储来完成此操作,尽管不确定本地存储。

RStudio has a good tutorial about persistent data storage in shiny apps, so I would start there: Persistent data storage in Shiny apps RStudio有一个很好的教程,介绍了闪亮应用程序中的持久数据存储,因此我从这里开始: 闪亮应用程序中的持久数据存储

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM