Page MenuHomePhabricator

chooseCRANmirror() and install.packages problems in R on production
Closed, ResolvedPublic

Description

From stat1006, run R, then:

chooseCRANmirror()

  • nothing happens (it should offer a menu of CRAN mirrors to chose from where to install the packages).

Also:

install.packages('dplyr', lib="/home/goransm/RPckg", repos = "http://cran.uk.r-project.org")

  • nothing happens. Trying without the repos option results in displaying:
  • Please select a CRAN mirror for use in this session ---

which is expected - and then nothing happens, no CRAN mirrors get listed, nothing to do.

NOTE: capabilities()['libcurl'] returns TRUE; SSL is enabled.

Please advise.

Event Timeline

Sys.setenv(
  http_proxy = "http://webproxy.eqiad.wmnet:8080",
  https_proxy = "http://webproxy.eqiad.wmnet:8080"
)
install.packages("dplyr", repos = c(CRAN = "https://www.stats.bris.ac.uk/R/"))

worked for me on stat1006. It will ask if you want to create a personal library in your homedir to install to. They key components here are:

  • Setting the proxy
  • Using repos = c(CRAN = "...")
  • Possibly using the final URL "https://www.stats.bris.ac.uk/R/" since "http://cran.uk.r-project.org" simply redirects there

Hope that helped!

Proxy, of course. Thank you Mikhail!