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'
install_version()with argumenttype = "binary"correctly tries to download the compressed folder from thebindirectory on cran, but on windows it tries to look for a.tar.gzarchive where it should be looking for a.zip.Reprex: