Skip to content

Commit

Permalink
Enable install_version to install current version of package on Windo…
Browse files Browse the repository at this point in the history
…ws/macOS (#1730)

Allow install_version to install current version of package on Windows and macOS.
  • Loading branch information
jdblischak authored and jimhester committed Mar 13, 2018
1 parent 8a4d769 commit badeb4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# devtools 1.13.3.9000

* `install_version()` can now install current version of CRAN package on Windows
and macOS (@jdblischak, #1730)

* The CRAN-RELEASE file is now added to .Rbuildignore (#1711)

* The `lang` argument to `spell_check()` was removed, for compatibility with
Expand Down
3 changes: 1 addition & 2 deletions R/install-version.r
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ install_version <- function(package, version = NULL,
if (package %in% row.names(available)) {
current.version <- available[package, 'Version']
if (is.null(version) || version == current.version) {
return(install.packages(package, repos = repos, contriburl = contriburl,
type = type, ...))
return(install.packages(package, repos = repos, type = type, ...))
}
}

Expand Down

0 comments on commit badeb4d

Please sign in to comment.