On my local machine running Ubuntu 18.04, install_version() is able to install a package from various CRAN mirrors. All of the below work:
remotes::install_version("rstudioapi", "0.1", repos = "https://cloud.r-project.org")
remotes::install_version("rstudioapi", "0.1", repos = "https://cran.rstudio.com")
remotes::install_version("rstudioapi", "0.1", repos = "https://cran.case.edu")
Session information for local machine
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.3 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.1 tools_3.6.1 remotes_2.1.0 packrat_0.5.0
In contrast, in the Docker image rocker/r-base, install_version() only works for some CRAN mirrors:
remotes::install_version("rstudioapi", "0.1", repos = "https://cloud.r-project.org")
## Error in package_find_repo(package, repos) :
## couldn't find package 'rstudioapi'
remotes::install_version("rstudioapi", "0.1", repos = "https://cran.rstudio.com")
## Error in package_find_repo(package, repos) :
## couldn't find package 'rstudioapi'
remotes::install_version("rstudioapi", "0.1", repos = "https://cran.case.edu")
## Downloading package from url: https://cran.case.edu/src/contrib/Archive/rstudioapi/rstudioapi_0.1.tar.gz
## <installation output ommitted>
Session information for rocker/r-base
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux bullseye/sid
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.8.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.1 tools_3.6.1 remotes_2.1.0
On my local machine running Ubuntu 18.04,
install_version()is able to install a package from various CRAN mirrors. All of the below work:Session information for local machine
In contrast, in the Docker image rocker/r-base,
install_version()only works for some CRAN mirrors:Session information for rocker/r-base