How To: Link Rtools with Rstudio

Question

How do I link my Rtools installation to Rstudio?

 

Answer

1. Open Windows Search by pressing Windows + S keys simultaneously. 

Windows key plus S key

 

2. In the Search box, type Notepad

Search box with Notepad entered.

 

3. In the Notepad editor window, enter Path text.

Example for Rtools 4.5 under user TrumanT: PATH="C:\Users\trumant\Rtools45\usr\bin;${PATH}"

Notepad window displaying example text

 

4. Select "Save as".

Save As option in Notepad's File menu drop down

 

5. Save file as .Renviron in the user's Documents folder

Example: C:\Users\trumant\Documents\.Renviron

a. Ensure Documents is the current selected folder

b. Ensure .Renviron is the file name with no extension

c. Ensure the Save as type is All files (*.*)

d. Select Save

Save As Dialog in user's Documents folder set filename and extension

 

6. Verify folder, filename, and file type with no extension

Example: C:\Users\trumant\Documents\.Renviron

a. Verify Documents is the current folder

b. Verify filename is .Renviron with no extenstion

c. Verify extension type is RENVIRON file

FIle Explorer with .Renviron file displayed in user's Document folder

 

7. Ensure Rstudio is linked to Rtools by following instructions in the below article.