Problem Installing Packages

If you are unable to install packages in RStudio, some common problems are outlined below:

Try a different CRAN mirror

It is possible your default CRAN Mirror is down or currently unavailable. You can switch to a different CRAN mirror from the RStudio Options Menu.

Set your default repositories

By default, R will only search for packages located on CRAN. You can include Bioconductor, R-Forge, and others by using the setRepositories() command from the console. To preserve this setting over sessions, you can also define this in your .Rprofile or other Startup file.

Does your internet use a proxy?

If your networking environment requires outbound network connections to go through a HTTP proxy, see the following Knowledge Base article on Configuring R to Use an HTTP Proxy

Still having problems?

Create a new support discussion with the details of your specific problem and your current system configuration.

Return to Troubleshooting Guide: Using RStudio