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:
trestletech
2019-08-12 15:03:50 -05:00
parent 5ea9d70fb4
commit 7317a8304f
4 changed files with 6 additions and 9 deletions

View File

@@ -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)
}