Load an app's supporting R files
Loads all of the supporting R files of a Shiny application. Specifically,
this function loads any top-level supporting
.R files in the
adjacent to the
loadSupport(appDir, renv = new.env(parent = globalenv()), globalrenv = globalenv())
The application directory
The environmeny in which the files in the
R/directory should be evaluated.
The environment in which
global.Rshould be evaluated. If
global.Rwill not be evaluated at all.
At the moment, this function is "opt-in" and only called if the option
shiny.autoload.r is set to
The files are sourced in alphabetical order (as determined by
global.R is evaluated before the supporting R files in the