R 3.3.0 Installing a Package on Windows: Gcc Not Found Error

RStudio not finding RTools

I have sorted the problem in this way, partly guided by the comments on the question at:

Rtools not being detected by R

Given that devtools::find_rtools() returns TRUE and the check at the end of this webpage using Rcpp (https://thecoatlessprofessor.com/programming/installing-rtools-for-compiled-code-via-rcpp/) works:

Try Sys.which("ls.exe") and Sys.which("gcc.exe"). The former should return a path, but the latter may be empty, which is the problem.

I then found another copy of gcc.exe (in my case it there was one at C:\Rtools\mingw_64\bin, which is a bit maddening) and copied it into C:\Rtools\bin, which is where RStudio seems to want it. That is where ls.exe was found using the Sys.which. That solved the problem for me.

Cannot install packages to R after brew install

My problem was that I had a few stray python3 config files floating around after a non-brew install of python3. I removed python3 and reinstalled with brew.

My recommendation to users having the same problem is to run brew doctor. If you are having the same problem I was, your python3 config files will be displayed as issues, and you can uninstall python3 and reinstall it with brew install python3.

I then had a few dependencies I had to work through, some in R, and some in brew.

@comfort eagle 's suggestion of using install_github() after installing and importing devtools was also helpful.

Rcpp, Rtools, and cygwin: failing to install Rcpp

I was getting frustrated dealing with the same errors. In the Cygwin installation 'Select Packages' window, search for each of these libraries and install them. For example: pcre, lzma, bz2, ... I was finally able to compile after installing all of these.



Related Topics



Leave a reply



Submit