Skip to content

Commit

Permalink
updated with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Jun 15, 2017
1 parent 9d61987 commit 1ca3d68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ghtravis
Type: Package
Title: Interfaces with GitHub API and Travis
Version: 0.2.9
Version: 0.2.10
Author: John Muschelli
Maintainer: John Muschelli <muschellij2@gmail.com>
Description: Interfaces and compares things on 'GitHub' 'API' and 'Travis' 'CI'.
Expand Down
12 changes: 10 additions & 2 deletions R/install_remote_binaries.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install_remote_binaries = function(

urls = remote_binaries(path = path, remotes = remotes)
if (!is.null(package)) {
if (package != "") {
if (all(package != "")) {
urls = urls[intersect(package, names(urls))]
}
}
Expand Down Expand Up @@ -76,7 +76,15 @@ install_remote_binaries = function(
# need to check versions!
keep_packs = update_these_packages(path = path)
# utils::remove.packages(keep_packs)
packs = packs[ !(packs %in% keep_packs)]
keep = (packs %in% keep_packs)
if (!all(keep)) {
warning(
paste0(
"Packages: ", paste(packs[keep_packs], collapse = ","),
"have installed binary, but version not correct!")
)
}
packs = packs[ !keep ]
# }

if (file.exists(path)) {
Expand Down

0 comments on commit 1ca3d68

Please sign in to comment.