简体   繁体   English

运行带有其他R文件的闪亮服务器应用程序

[英]Running shiny server app with additional r files

I have 3 files which are needed to my app . 我的app需要3个文件。

First a general r with functions make some calculations and need to load the ui and server files to run the app . 首先,带有函数的常规r进行一些计算,并且需要加载uiserver文件以运行该app

When I run it on Rstudio it works fine. 当我在Rstudio上运行它时,它可以正常工作。 How is it possible to insert this app to shiny server , meaning that I need first a script and after that run the ui and server files? 如何将这个app插入shiny server ,这意味着我首先需要一个脚本,然后运行uiserver文件?

Use a global.R file or use source(file, local = FALSE) to read R Code from a file . 使用global.R文件或使用source(file, local = FALSE)file读取R代码。

For more details check the scoping rules. 有关更多详细信息,请检查作用域规则。

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

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