I've downloaded R and RStudio about 5 times now and keep getting this error. I've looked all over and none of the recommended solutions work. This is the error I keep getting.
If you are using miniconda3 or anaconda Evirnoments run conda deactivate base before run R on the command line.