loadSupport

0th

Percentile

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 R/ directory adjacent to the app.R/server.R/ui.R files.

Usage
loadSupport(appDir, renv = new.env(parent = globalenv()),
  globalrenv = globalenv())
Arguments
appDir

The application directory

renv

The environmeny in which the files in the R/ directory should be evaluated.

globalrenv

The environment in which global.R should be evaluated. If NULL, global.R will not be evaluated at all.

Details

At the moment, this function is "opt-in" and only called if the option shiny.autoload.r is set to TRUE.

The files are sourced in alphabetical order (as determined by list.files). global.R is evaluated before the supporting R files in the R/ directory.

Aliases
  • loadSupport
Documentation reproduced from package shiny, version 1.4.0, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.