How-To: RStudio: Add Renv to an Existing Project

Question

How do I add the Renv package to an existing project in RStudio?

 

Answer

 

  1. Load your desired project which you would like to install renv on.                   
  2. Navigate to the “Files” section.

Screenshot of the "Files" tab in RStuido

3. In the “Files” section.

  1. Select the “Packages” tab.
  2. Click on the “Install” button.
  3. Type “renv” in the “Packages” text box and select “renv” in the drop down.
  4. Click the “Install” button. Renv will now install.

Screenshot of the "Packages" tab in RStudio, with the "Install Packages" tab open. "renv" is typed into the search box.

4. Navigate to the “Console” section and wait until the output says "package 'renv' successfully unpacked and MD5 sums checked", then type “renv::init()” to add renv to your project.

Screenshot of the "Console" tab in RStudio, with a message stating "package 'renv' successfully unpacked and MD5 sums checked" and the command "renv::init()" typed by the user

 

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