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?
Collecting package metadata (repodata.json): \ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x1083d9fd0>: Failed to resolve 'repo.anaconda.com' ([Errno 8] nodename nor servname provided, or not known)")': /pkgs/r/osx-arm64/repodata.json.zst
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x1083da1e0>: Failed to resolve 'conda.anaconda.org' ([Errno 8] nodename nor servname provided, or not known)")': /conda-forge/osx-arm64/repodata.json.zst (when I run conda install, the previous error repeats over and over again)
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https//conda.anaconda.org/conda-forge/osx-arm64'
I cannot successfully use the command conda install, and I cannot disable conda completely (I've downloaded miniconda, but I can't delete it or disable it). What's worse, no matter what I tried, I cannot join zoom meeting now. I don't know if all these mistakes are connected internally, but I'm very, very helpless right now.
That certainly does not look like intermittent network failure, but a broken conda installation. I don't know much about conda, but according to this post you can run
conda config --set auto_activate_base false
in a terminal to turn off the automatic conda setup that happens when you start a terminal (?) or when you log in (?). So I would try to run that, then log out and log in again.
You will probably get a better answer on a conda specific forum, though.