Skip to content

Commit 8f5a4ab

Browse files
author
hornik
committed
Tweaks.
git-svn-id: https://svn.r-project.org/R/trunk@88221 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent aa687cd commit 8f5a4ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/library/tools/R/utils.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,6 +2668,14 @@ function(dir, FUN, ..., pattern = NULL, verbose = FALSE,
26682668
dir <- file_path_as_absolute(dir)
26692669

26702670
dfiles <- Sys.glob(file.path(dir, "*", "DESCRIPTION"))
2671+
## Hack to allow using also for base package sources.
2672+
if(!length(dfiles)) {
2673+
dfiles <- Sys.glob(file.path(dir, "*", "DESCRIPTION.in"))
2674+
## Need to exclude 'translations', so simply match against the
2675+
## known base package names.
2676+
dfiles <- dfiles[basename(dirname(dfiles)) %in%
2677+
.get_standard_package_names()$base]
2678+
}
26712679
if(!is.null(pattern))
26722680
dfiles <- dfiles[grepl(pattern, basename(dirname(dfiles)))]
26732681
paths <- dirname(dfiles)

0 commit comments

Comments
 (0)