diff --git a/DESCRIPTION b/DESCRIPTION index 18e2106..56aefa6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: webshot Title: Take Screenshots of Web Pages -Version: 0.5.2 +Version: 0.5.2.9000 Authors@R: c( person("Winston", "Chang", email = "winston@rstudio.com", role = c("aut", "cre")), person("Yihui", "Xie", role = "ctb"), diff --git a/NEWS.md b/NEWS.md index 67a7371..85a0d7b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +webshot 0.5.2.9000 +============= + +* Fixed logic in `install_phantomjs()` when `force=TRUE` is used. ([#89](https://github.com/wch/webshot/pull/89)) + webshot 0.5.2 ============= diff --git a/R/utils.R b/R/utils.R index d91743a..dbfd448 100644 --- a/R/utils.R +++ b/R/utils.R @@ -141,7 +141,7 @@ install_phantomjs <- function(version = '2.1.1', baseURL = 'https://github.com/wch/webshot/releases/download/v0.3.1/', force = FALSE) { - if (is_phantomjs_version_latest(version) && !force) { + if (!force && is_phantomjs_version_latest(version)) { message('It seems that the version of `phantomjs` installed is ', 'greater than or equal to the requested version.', 'To install the requested version or downgrade to another version, ',