在r中添加对zip文件的评论

时间:2016-01-27 11:37:54

标签: r zip zipfile

我正在尝试使用R中的函数zip为zip文件添加注释。例如,我需要添加注释“S:spList”。所以,我假设一个正确的方法可能是:

data(iris)
write.csv(iris, "iris.csv")
zip(zipfile="iris.zip", files="iris.csv", extras="-z S:spList")
file.remove("iris.csv")

我在输出后进入控制台:

adding: iris.csv (deflated 77%)
enter new zip file comment (end with .):
zip warning: name not matched: S:spList

显然,函数zip会创建并尝试添加注释,但注释本身就会给它带来麻烦。

有人能帮助我吗? 非常感谢任何建议

Migue

0 个答案:

没有答案