Skip to content

Commit 0e14e1c

Browse files
committed
Another unique() call to protect from double entries
1 parent b0ca4e3 commit 0e14e1c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

R/controlFiles.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
return(invisible(NULL))
2727

2828
for (d in deps) {
29+
if (debug) cat("DEPENDS ", d, "\n")
2930
if (.isBasePackage(d) || d == "R") next
30-
p <- ap[Package==d, deb]
31+
p <- unique(ap[Package==d, deb])
3132
cat(", ", p ,sep="", file=con, append=TRUE)
3233
}
3334

@@ -43,6 +44,7 @@
4344
imps <- strsplit(imp, ",")[[1]]
4445
for (i in imps) {
4546
i <- trimws(i)
47+
if (debug) cat("IMPORTING ", i, "\n")
4648
if (.isBasePackage(i)) next
4749
p <- unique(ap[Package==i, deb])
4850
cat(", ", p ,sep="", file=con, append=TRUE)

0 commit comments

Comments
 (0)