R and R studio failed to connect to the Internet in Mac

chooseCRANmirror() resulted in warnings:
Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Couldn't resolve host name'

install.packages("tidyverse") resulted in
Warning in install.packages :
unable to access index for Repository CRAN:
cannot open URL 'https://CRAN.R-project.org/src/contrib/PACKAGES'

I have changed various CRAN mirror and wlan environment, but failed anyway.

hi @Kai_Yu and welcome to Rstudio community.

Is there any proxy on your mac?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.