Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for install_deps(upgrade=FALSE) and remote packages (#227)
With other changes to how upgrading works we need to mark uninstalled remotes as `UNINSTALLED` rather than `BEHIND`
  • Loading branch information
ankane authored and jimhester committed Oct 29, 2018
1 parent 5a92eca commit 9382690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
@@ -1,5 +1,7 @@
# remotes 2.0.1.9000 - Development

* `install_deps()` now installs un-installed remotes packages even when `upgrade = "never"` (@ankane, #227)

* `install_version()` now removes metadata added as a byproduct of using
`install_url()` internally() (#224)

Expand Down
1 change: 1 addition & 0 deletions R/deps.R
Expand Up @@ -511,6 +511,7 @@ remote_deps <- function(pkg, ...) {
available <- vapply(remote, function(x) remote_sha(x), character(1), USE.NAMES = FALSE)
diff <- installed == available
diff <- ifelse(!is.na(diff) & diff, CURRENT, BEHIND)
diff[is.na(installed)] <- UNINSTALLED

res <- structure(
data.frame(
Expand Down

0 comments on commit 9382690

Please sign in to comment.