Rstudio Desktop can't find build tools


#1

When I run the commands below in the R GUI (version 3.5.2):

library(pkgbuild)
has_build_tools(T)

I get the following output:

> \> has_build_tools(T)
Scanning R CMD config CC...
cc_path:  
'.exe' does not exist
Scanning path...
Scanning registry...
Found C:/RBuildTools/3.5 for 3.5 
VERSION.txt
Rtools version 3.5.0.4 
[1] TRUE

However, when I run the same commands from within the RStudio desktop client (Version 1.1.463), I get a different result. I get a message box asking me if I'd like to install build tools. I click "no" since I believe I have the build tools, and the console returns the following:

> \> has_build_tools(T)
[1] FALSE 

#2

Do you have any better luck with the preview release of RStudio?


#3

I've solved the issue. Turns out my company's anti-virus program was preventing Rstudio from detecting build tools. We have resolved the issue internally.