Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove method="auto" from download.file call #230

Merged
merged 1 commit into from
Nov 14, 2021

Conversation

mnazarov
Copy link
Contributor

Having hard-coded method="auto" prevents users from changing the method with options("download.file.method" = ...).
However, if this option is not set, the method = "auto" is chosen anyway, so there wouldn't be any unexpected behaviour changes for users.
This should help with errors like - #169 (comment) - since users would be able to call:

op <- options("download.file.method" = "wget", "download.file.extra" = "--no-check-certificate")
getData(...)
options(op)

Having hard-coded `method="auto"` prevents users from changing the method with `options("download.file.method" = ...)`. 
However, if this option is not set, the `method = "auto"` is chosen anyway, so there wouldn't be any unexpected behaviour changes for users.
This should help with errors like - rspatial#169 (comment) - since users would be able to call:
```r
op <- options("download.file.method" = "wget", "download.file.extra" = "--no-check-certificate")
getData(...)
options(op)
```
@mnazarov mnazarov mentioned this pull request Oct 28, 2021
@rhijmans rhijmans merged commit 39089a2 into rspatial:master Nov 14, 2021
@rhijmans
Copy link
Member

Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants