Skip to content

Commit

Permalink
Note that R files are about to be loaded in cc() (#6043)
Browse files Browse the repository at this point in the history
* Update cc.R

* Also cat # files to load & remove extra whitespace
  • Loading branch information
MichaelChirico authored Jul 8, 2024
1 parent 19a73c7 commit c81f8bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .dev/cc.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
# test and step between R and C

sourceDir = function(path=getwd(), trace = TRUE, ...) {
r_files = list.files(path, pattern = "\\.[RrSsQq]$")
if (trace) cat("Loading", length(r_files), "R files:")
# copied verbatim from example(source) in base R
for (nm in list.files(path, pattern = "\\.[RrSsQq]$")) {
if(trace) cat(nm," ")
for (nm in r_files) {
if(trace) cat(" ", nm, sep="")
source(file.path(path, nm), ...)
}
if(trace) cat("\n")
Expand Down

0 comments on commit c81f8bb

Please sign in to comment.