On running the following command RStudio hangs and though I can Still enter commands but nothing gets executed. It has happened several times I tried terminating R and Restarting it though it didn't help.
You may need to check your internet connection. Are you behind a proxy server? Is your security software or firewall restricting internet access? Maybe the server was down when you tried.