Load pending batch files from disk
gather_batches.RdReads all .R files from a batches/ directory and reconstructs
them as a named list, where each element contains the object x
defined inside the file.
Details
Each batch file is read in isolation using sys.source() into a
temporary environment to avoid polluting the global environment.
The result is a list of batches, with names derived from the
filenames (minus the .R extension).
Examples
if (FALSE) { # \dontrun{
batches <- gather_batches("data/2021")
names(batches)
} # }