thequadge
thequadge

Reputation: 79

R - devtools - Build - ZIP failure?

I have been trying to build a package in R using the package devtools and the build function but it keeps failing on the zip element despite having the zip package installed?

* installing to library 
'C:/Users/OMICRON/AppData/Local/Temp/Rtmpc30Top/temp_libpath133c19a632ea'
* installing *source* package 'simTools' ...
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'simTools'
finding HTML links ... done
sampleFromData                          html  
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* MD5 sums
Warning in system(paste(shQuote(ZIP), "-r9Xq", filepath, paste(curPkg, 
collapse = " "))) :
'"zip"' not found
running 'zip' failed
* DONE (simTools)
In R CMD INSTALL
[1] "D:/R/simTools_0.0.0.9000.zip"

Upvotes: 2

Views: 647

Answers (1)

Adnan Fiaz
Adnan Fiaz

Reputation: 31

My guess is that zip is referring to the Linux zip command and not the zip package.

Do you have R-tools installed? That includes a number of Linux commands and is necessary for building packages on Windows. It also needs to be included to your PATH (System Properties -> Environment Variables). You can check if it is properly set up using devtools::find_rtools().

Upvotes: 2

Related Questions