找不到ff包ffsave'zip'

问题描述:

可复制示例:

library("ff")
m <- matrix(1:12, 3, 4, dimnames=list(c("r1","r2","r3"), c("m1","m2","m3","m4")))
v <- 1:3    
ffm <- as.ff(m)    
ffv <- as.ff(v)        
d <- data.frame(m, v)

ffd <- ffdf(ffm, v=ffv, row.names=row.names(ffm))

 ffsave(ffd,file="C:\\Users\\R.wd\\ff\\ffd")
 ## Error in system(cmd, input = filelist, intern = TRUE) : 'zip' not found

系统:Windows 7 64位,R 15.2 64位

System: Windows 7 64bit, R 15.2 64bit

已安装工具

已将设置为Windows路径的300xn-x64压缩和600xn文件夹解压缩

zip 300xn-x64 and unzip 600xn folders set to windows Path already

cmd行工作,键入zip或解压缩,显示功能信息

cmd line working, type zip or unzip it shows function info

需要帮助!任何建议表示赞赏.

Need help! Any suggestion is appreciated.

未找到"zip"问题是ff软件包所独有的问题.这是一个简单的解决方案.

The 'zip' not found issue is a problem not unique to the ff package. Here is a simple solution.

  1. 下载Rtools https://cran.r-project.org/bin/windows/Rtools/
  2. 打开Rtools并导航到bin文件夹. Rtools> bin
  3. 在另一个窗口中,打开您的r路径.例如,我的是C:\ Program Files \ R \ R-2.15.2 \ bin \ x64(
  1. Download Rtools https://cran.r-project.org/bin/windows/Rtools/
  2. Open Rtools and navigate to the bin folder. Rtools > bin
  3. In a separate window, open your r path. For example, mine is C:\Program Files\R\R-2.15.2\bin\x64 (more details at CRAN R for windows FAQ)
  4. Copy the the Rtools Application "zip" (from 2) into the r path folder (from 3)

现在,您应该可以保存文件了.如果要加载文件,则还需要将解压缩复制到r路径文件夹中.

Now you should be able to save your file. If you want to load your file you'll need to copy unzip into your r path folder as well.