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

Consider doing extra work to choose the right download.file.method #5390

Open
juliasilge opened this issue Nov 16, 2024 · 0 comments
Open

Consider doing extra work to choose the right download.file.method #5390

juliasilge opened this issue Nov 16, 2024 · 0 comments
Labels
enhancement New feature or request lang: r support
Milestone

Comments

@juliasilge
Copy link
Contributor

RStudio does a fair bit of work to determine the best download method; you can see the result in RStudio by calling .rs.secureDownloadMethod(). This option effects a lot including install.packages(), and the fussiness appears to be needed in controlled corporate Windows environments. See #5355 where a user can install packages in RStudio (what RStudio is doing is working) but cannot install packages in Positron. That user got unstuck by setting:

options(download.file.method = "wininet")

The extended discussion in rstudio/rstudio#10163 seems pretty relevant and I will highlight @kevinushey's advice there, for folks looking for a workaround for now:

In any event, I think our current recommendation is to use the default "libcurl" download method if possible (with http_proxy set if a proxy is required), and "wininet" if not (e.g. because you require the default Windows proxy settings).

@juliasilge juliasilge added lang: r enhancement New feature or request support labels Nov 16, 2024
@juliasilge juliasilge added this to the Future milestone Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lang: r support
Projects
None yet
Development

No branches or pull requests

1 participant