mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Only load top-level R files in R/
Ignores nested directories to better follow R package conventions. We want to align well so that this structure is portable to golem.
This commit is contained in:
2
R/app.R
2
R/app.R
@@ -300,7 +300,7 @@ initAutoReloadMonitor <- function(dir) {
|
||||
# > The files are sorted in alphabetical order, on the full path
|
||||
loadHelpers <- function(appDir, envir=globalenv()){
|
||||
helpersDir <- file.path(appDir, "R")
|
||||
helpers <- list.files(helpersDir, pattern="\\.[rR]$", recursive=TRUE, full.names=TRUE)
|
||||
helpers <- list.files(helpersDir, pattern="\\.[rR]$", recursive=FALSE, full.names=TRUE)
|
||||
|
||||
lapply(helpers, sourceUTF8, envir=envir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user