rwinlib / rtools35

Scripts for building the rtools installer bundle
15 stars 3 forks source link

Not finding make #7

Closed imanuelcostigan closed 6 years ago

imanuelcostigan commented 6 years ago

I have a fresh Windows 10 Enterprise install with admin rights and for some idiosyncratic reasons need to build packages from source.

I have set the PATH envvar as part of install and in R see the following:

> Sys.getenv("PATH")
[1] "C:\\Program Files\\R\\R-3.5.1\\bin\\x64;c:\\Rtools\\bin;....

I then try to install say the digest package and get the following error:

Loading required package: devtools
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'digest'

However, note that I can also see the following:

> Sys.which("make")
                       make 
"c:\\Rtools\\bin\\make.exe" 

I am keen to figure out how I can fix this.

Thanks.

jeroen commented 6 years ago

That is very odd. What command do you use to install packages?

imanuelcostigan commented 6 years ago

install.packages("digest")

imanuelcostigan commented 6 years ago

This looks to be an RStudio problem. I do not encounter this issue when running the same command in R run from Powershell. Though I am a bit confused as to why that might be the case.

imanuelcostigan commented 6 years ago

Issue seems to have disappeared in RStudio after executing the command in shell. Very strange