From 5b84ebe00f858905f9047469cc6f2e5a3600f836 Mon Sep 17 00:00:00 2001 From: Jacob Malcom Date: Tue, 6 Dec 2016 07:53:54 -0500 Subject: [PATCH 1/2] Add R version 3.3.2 to checks for download_no_libcurl. --- R/utils.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index 873cd5e..cceb383 100644 --- a/R/utils.R +++ b/R/utils.R @@ -165,7 +165,8 @@ available_port <- function(port) { # 403 for HEAD requests. See # https://stat.ethz.ch/pipermail/r-devel/2016-June/072852.html download <- function(url, destfile, mode = "w") { - if (getRversion() == "3.3.0" || getRversion() == "3.3.1") { + if (getRversion() == "3.3.0" || getRversion() == "3.3.1" || + getRversion() == "3.3.2") { download_no_libcurl(url, destfile, mode = mode) } else if (is_windows() && getRversion() < "3.2") { From af80d3a5898653d0ab779a16a7e6b5fef465fd30 Mon Sep 17 00:00:00 2001 From: Jacob Malcom Date: Tue, 6 Dec 2016 10:48:02 -0500 Subject: [PATCH 2/2] Change R version check to >= 3.3.0 for no_libcurl. --- R/utils.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/utils.R b/R/utils.R index cceb383..5a7ec03 100644 --- a/R/utils.R +++ b/R/utils.R @@ -165,8 +165,7 @@ available_port <- function(port) { # 403 for HEAD requests. See # https://stat.ethz.ch/pipermail/r-devel/2016-June/072852.html download <- function(url, destfile, mode = "w") { - if (getRversion() == "3.3.0" || getRversion() == "3.3.1" || - getRversion() == "3.3.2") { + if (getRversion() >= "3.3.0") { download_no_libcurl(url, destfile, mode = mode) } else if (is_windows() && getRversion() < "3.2") {