How-To: RStudio: Adding a Repository

Question

How do I add a secondary repository to RStudio?

 

Answer

1. On the top of the RStudio window, click on the "Tools" drop-down, and click on "Global Options".

Screenshot of the "Tools" drop-down, with the "Global Options" option highlighted.

2. On the left side of the "Options" pop-up, select the "Packages" tab.

3. Next to the "Secondary Repositories" section, click on the "Add" button.

Screenshot of the "Options" pop-up with the "Packages" tab opened and the "Add" button highlighted under "Secondary repositories"

4. The "Add Secondary Repository" pop-up will open. There are two text boxes in this section; "Name" and "URL". For this example, we will be adding rOpenSci.

5. In the "Name" section, choose a name for your repository. Set this to the name of the repository that you want to add.

6. In the "URL" section, paste the URL for the repository into the text box, then click "OK"

Screenshot of the "Add Secondary Repository" pop-up. "ropensci" has been added to the "Name" text box and "https://ropensci.r-universe.dev" has been added to the "URL" text box as example.

7. The "Add Secondary Repository" pop-up will close, and the added repository will show up in the "Secondary Repositories" box.

8. Click "Apply", then "OK" to apply the changes and close the "Options" window.

Screenshot of the "Options" window, with the "Apply" box highlighed, then the "OK" box highlghted.

 

For Additional Assistance

For additional assistance or questions about this article, please contact itrss-support@missouri.edu

Print Article

Related Articles (1)

Index of RStudio guides