Warning messages:
1: In download.file(mirrors_csv_url, destfile = mirrors_csv, quiet = TRUE) :
URL 'http://cran.r-project.org/CRAN_mirrors.csv': status was 'Couldn't resolve host name'
2: In download.file(mirrors_csv_url, destfile = mirrors_csv, quiet = TRUE) :
URL 'http://cran.r-project.org/CRAN_mirrors.csv': status was 'Couldn't resolve host name'
The full warning is below (sry I don't know how to quote the code). I've adjusted the settings in 'packages' as instructed in other posts, but it doesn't work.
I don't have an error when entering the site, and I've checked that I had already turned off the firewall in the system setting of my Mac. I'm not behind a corporate firewall.
I would try resetting RStudio. If you haven't tried simply restarting RStudio, try that first. If that does not work, shutdown RStudio and run this command in the terminal.
I've already restarted Rstudio for several times, but nothing changed.
I run the command in the terminal, and it shows:
(base) fanxuehans-MacBook-Pro:1 fanxuehan$ mv ~/.local/share/rstudio ~/.local/share/rstudio-backup
mv: rename /Users/fanxuehan/.local/share/rstudio to /Users/fanxuehan/.local/share/rstudio-backup/rstudio: Directory not empty
When I install packages after restarting Rstudio, it still shows:
It looks like the mv command did not work. I don't see anything wrong with what you typed. Can you navigate to the /Users/fanxuehan/.local/share/ folder and rename the rstudio file to rstudio-backup?