How To: Verify RStudio is Using User Installed RTools

Question

How do I verify that RStudio is using RTools installed in my user profile?

 

Answer

1. Using RStudio > Console pane, enter 'Sys.which("make.exe") ' at the prompt. 

The resulting path string shows the location of your RTools installation. Confirm it resides in your user profile and is writable so it can be used without administrative privileges.

Example for RTools 4.5 under user TrumanT: "C:\\Users\\trumant\\rtools45\\usr\\bin\\make.exe"

Rstudio console displaying RTools windows directory n	stallation  location in user profile

 

2. (Optional: test RTools linking using devtools package) 

     a. If not installed, install devtools in RStudio > Console:

          > install.packages("devtools")

 Rstudio console with install.packages left parentheses quote symbol devtools quote symbol right parentheses

     b. Test devtools installation in RStudio > Console:

          > devtools::find_rtools()

command line showing dev tools find rtools command

 

Note: For more information on installing packages, please refer to How-To: RStudio: Installing Packages.

 

For Additional Assistance

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

Print Article

Related Articles (4)

Link RTools to RStudio by inserting RTools path in .Renviron file.
Installing RTools in user environment without admin privileges.
A step-by-step guide for installing packages into an existing project in RStudio.
Index of R/RStudio guides