R install - cannot open URL

jenshumrich
Contributor

Neither standard nor non standard repo seem available. Any idea how to debug/fix this?

 

%r
install.packages("gghighlight", lib="/databricks/spark/R/lib", repos = "http://cran.us.r-project.org")
Warning: unable to access index for repository http://cran.us.r-project.org/src/contrib:
  cannot open URL 'http://cran.us.r-project.org/src/contrib/PACKAGES'
Warning: package ‘gghighlight’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

 

 

jenshumrich
Contributor
%sh
nc -zv cran.us.r-project.org 80 

It was a network issue. These lines above proved it and the network administrators had to open the IPs.

View solution in original post