Skip to content

Commit

Permalink
check_cran: print dependencies that are being installed
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Dec 12, 2012
1 parent d0b39c2 commit 7479c55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/check-cran.r
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ check_cran <- function(pkgs, libpath = file.path(tempdir(), "R-lib"),
old <- old.packages(libpath, repos = repos, type = type,
available = available_bin)
if (!is.null(old)) {
message("Updating ", nrow(old), " existing dependencies")
message("Updating ", nrow(old), " existing dependencies: ",
paste(old[, "Package"], collapse = ", "))
install.packages(old[, "Package"], libpath, repos = repos, type = type,
Ncpus = threads)
}
Expand All @@ -81,7 +82,8 @@ check_cran <- function(pkgs, libpath = file.path(tempdir(), "R-lib"),
unknown <- setdiff(to_install, rownames(available_bin))

if (length(known) > 0) {
message("Installing ", length(known), " missing binary dependencies")
message("Installing ", length(known), " missing dependencies: ",
paste(known, collapse = ", "))
install.packages(known, lib = libpath, quiet = FALSE, repos = repos,
Ncpus = threads)
}
Expand Down

0 comments on commit 7479c55

Please sign in to comment.