dkahle / dkahle/ggmap

get_googlemap: error using download.file() with 'https://'

Open
#142 0 comments 0 reactions 0 assignees View on GitHub
bug feature request
Dominant language
R
Stars
778
Forks
234
PR merge metrics
No merged PRs in 30d

Description

Since commit dd6bf2da5a54b7bf14c30afe2ce2a6b98b114499, `get_googlemap()` is requesting the map via http instead of https, but since `download.file()` is called with `method = NULL` (`method = 'internal'` in most of the cases), 'https://' URLs are not supported in most of the cases, as stated in the documentation of `download.file()`, and the `get_googlemap()` or `get_map()` crashes with the following message:

```r
Error in download.file(url, destfile = destfile, quiet = !messaging,
mode = "wb") :
unsupported URL scheme
```

Please let me know if I'm wrong or if I can give more information.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.