I am trying to add comments to zip files using the zip function in R. For example, I need to add the comment "S: spList". Thus, I suggested that this is the correct way:
data(iris)
write.csv(iris, "iris.csv")
zip(zipfile="iris.zip", files="iris.csv", extras="-z S:spList")
file.remove("iris.csv")
I get the following output in the console:
adding: iris.csv (deflated 77%)
enter new zip file comment (end with .):
zip warning: name not matched: S:spList
The zip function apparently does and tries to add a comment, but the comment itself causes problems.
Can someone help me? Thanks in advance for any advice.
Migue
source
share