I'm trying to get R to recognize that I have installed Rtools.exe. I've tried installing it in several different locations. However, whenever I restart R and load devtools
I get the same error:
> library(devtools)
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.0 from http://cran.r-project.org/bin/windows
/Rtools/ and then run find_rtools().
Naturally, whenever I try the function find_rtools()
I get the same error message. I'm done trying to figure this out with help files, as the devtools
help doesn't offer much. I've tried installing in several of the locations returned by get_path()
but the problem persists.
FYI, currently my R is installed at D:/R
.
Has anyone else had this problem, and more importantly, can anyone help me? I'm sorry if this is a duplicate, and I've tried to include as many relevant details as possible so if you need any clarification please let me know.
Thanks, Nick
Installing RTools Go to https://cran.r-project.org/, click on 'Download R for Windows', then 'Rtools', and select the very latest version of RTools to download. After downloading has completed run the installer. Select the default options everywhere.
Rtools is a collection of software for building packages for R under Microsoft Windows, or for building R itself (version 1.9.
Grab the batch file Rpathset.bat
from batchfiles, edit the SET
statements in it appropriately and then run R like this from the Windows console:
Rpathset
Rgui
I ran into this issue running a Windows 7 machine without admin rights. I leveraged G. Grothendieck's response, with a few additional steps.
Rpathset.bat
from https://code.google.com/p/batchfiles/
Set
statements in Rpathset.bat
to your pathsCMD
and change directories to where Rpathset.bat
is storedrpathset.bat > mypath.txt
mypath.txt
with a text editorStart
and search for environment
Edit environment variables for your account
path
and then edit
mypath.txt
into the Windows path (everything after the path
statement)devtools::find_rtools()
is TRUE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With