I am building an application on RShiny using the Phyloseq library, and the code is starting to become unmanageable. I saw other code examples where programmers like Joey711 source
their code from other files.
Here is an example:
# Bar
source("panels/panel-server-bar.R", local = TRUE)
# Tree
source("panels/panel-server-tree.R", local = TRUE)
My current code is in two large server and ui files and I'm not sure how to break it up.
Merely splitting the code into multiple files breaks the program, but it works all together. Does anyone have an approach to breaking up a large codebase in R? Does the Global.R file allow you to call multiple code files in the app?