]> git.donarmstrong.com Git - cran2deb.git/commitdiff
r dependencies: use collapse instead of sep for pasting together disjunct of package...
authorblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:19:58 +0000 (13:19 +0000)
committerblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:19:58 +0000 (13:19 +0000)
bug found during mass builds.

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@71 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

pkg/trunk/R/rdep.R

index 6ca79181725ae262c32840ca7549b8664c289864..5a99a726fb651f812210c20a9c562373d329801f 100644 (file)
@@ -32,7 +32,7 @@ r.requiring <- function(names) {
     # approximately prune first into a smaller availability
     candidates <- rownames(available)[sapply(rownames(available)
                                             ,function(name)
-                                                length(grep(paste(names,sep='|')
+                                                length(grep(paste(names,collapse='|')
                                                            ,available[name,r_depend_fields])) > 0)]
     if (length(candidates) == 0) {
         return(c())