diff --git a/inst/examples/install2.r b/inst/examples/install2.r index cf28ef8..db6b6dd 100755 --- a/inst/examples/install2.r +++ b/inst/examples/install2.r @@ -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 }