Skip to content

Commit

Permalink
check if multiple packages fail with parallel install
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Oct 22, 2021
1 parent 3955380 commit c895acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/examples/install2.r
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ install_packages2 <- function(pkgs, ..., error = FALSE, skipinstalled = FALSE) {
catch <-
grepl("download of package .* failed", e$message) ||
grepl("(dependenc|package).*(is|are) not available", e$message) ||
grepl("installation of package.*had non-zero exit status", e$message)
grepl("installation of package.*had non-zero exit status", e$message) ||
grepl("installation of one or more packages failed", e$message)
if (catch) {
e <<- e
}
Expand Down

0 comments on commit c895acc

Please sign in to comment.