It seems like install_version just checks one of them? Maybe the last one? 0.1.0.9000 is the latest version for internal/latest, and install.packages works, so I would have expected install_version to work too.
Further, I would expect that install_version should work for older versions in both repositories.
options("repos" = c(
RSPM_DEV = "https://demo.rstudiopm.com/internal/latest",
RSPM_PROD = "https://demo.rstudiopm.com/cran/latest")
)
remotes::install_version("sass", "0.1.0.9000")
#> Trying https://demo.rstudiopm.com/internal/latest
#> Trying https://demo.rstudiopm.com/cran/latest
#> Error in download_version_url(package, version, repos, type): version '0.1.0.9000' is invalid for package 'sass'
remotes::install_version("sass", "0.1.0.9000", repos = "https://demo.rstudiopm.com/internal/latest")
#> Downloading package from url: https://demo.rstudiopm.com/internal/latest/src/contrib/sass_0.1.0.9000.tar.gz
#> Your system is ready to build packages!
#> Skipping 1 packages not available: digest
#> Installing package into '/home/rstudio-admin/dev-proj/renv/library/R-3.5/x86_64-pc-linux-gnu'
#> (as 'lib' is unspecified)
install.packages("sass")
#> Installing package into '/home/rstudio-admin/dev-proj/renv/library/R-3.5/x86_64-pc-linux-gnu'
#> (as 'lib' is unspecified)
Created on 2019-08-21 by the reprex package (v0.3.0)
It seems like
install_versionjust checks one of them? Maybe the last one? 0.1.0.9000 is the latest version for internal/latest, and install.packages works, so I would have expectedinstall_versionto work too.Further, I would expect that
install_versionshould work for older versions in both repositories.Created on 2019-08-21 by the reprex package (v0.3.0)