找不到ff包ffsave'zip' [英] R ff package ffsave 'zip' not found

查看:242
本文介绍了找不到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.

这篇关于找不到ff包ffsave'zip'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆