简体   繁体   中英

Running shiny server app with additional r files

I have 3 files which are needed to my app .

First a general r with functions make some calculations and need to load the ui and server files to run the app .

When I run it on Rstudio it works fine. 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?

Use a global.R file or use source(file, local = FALSE) to read R Code from a file .

For more details check the scoping rules.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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