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

install_version() binary on windows looks for .tar.gz but needs .zip #323

Closed
vankesteren opened this issue Dec 19, 2018 · 1 comment
Closed

Comments

@vankesteren
Copy link

vankesteren commented Dec 19, 2018

install_version() with argument type = "binary" correctly tries to download the compressed folder from the bin directory on cran, but on windows it tries to look for a .tar.gz archive where it should be looking for a .zip.

Reprex:

devtools::install_version("lavaan", "0.6-3", type = "binary")
#> Downloading package from url: https://cran.rstudio.com/bin/windows/contrib/3.5/lavaan_0.6-3.tar.gz
#> Error in utils::download.file(url, path, method = download_method(), quiet = quiet, : cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/lavaan_0.6-3.tar.gz'
@jimhester
Copy link
Member

jimhester commented Mar 27, 2019

Actually install_version() cannot install binaries on any operating system, because CRAN only stores binaries for the latest version of a package.

A possible improvement would be a better error message however.

@jimhester jimhester transferred this issue from r-lib/devtools Mar 27, 2019
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

No branches or pull requests

2 participants