[英]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
进行一些计算,并且需要加载ui
和server
文件以运行该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
,这意味着我首先需要一个脚本,然后运行ui
和server
文件?
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.