Skip to content

Commit

Permalink
solution for #1244 (#1250)
Browse files Browse the repository at this point in the history
* solution for #1244

* update NEWS.md

* compacting
  • Loading branch information
kiwiroy authored and hadley committed Jul 5, 2016
1 parent 4593165 commit c101cb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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.12.0.9000

* fix auto download method selection for `install_github()` on R 3.1 which
lacks "libcurl" in `capabilities()`. (@kiwiroy, #1244)

# devtools 1.12.0

## New features
Expand Down
6 changes: 3 additions & 3 deletions R/download-method.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Adapated from:
# Adapted from:
# https://github.com/rstudio/rstudio/blob/master/src/cpp/session/modules/SessionPackages.R
#
# Copyright (C) 2009-12 by RStudio, Inc.
Expand All @@ -12,9 +12,9 @@ download_method <- function(x) {
}

auto_download_method <- function() {
if (capabilities("libcurl")) {
if (isTRUE(capabilities("libcurl"))) {
"libcurl"
} else if (capabilities("http/ftp")) {
} else if (isTRUE(capabilities("http/ftp"))) {
"internal"
} else if (nzchar(Sys.which("wget"))) {
"wget"
Expand Down

0 comments on commit c101cb0

Please sign in to comment.