I am trying to create a zip file from multiple files using the zip
function in r, but I keep getting this error message:
running command '"zip" -r9X "data.zip" "dt1.txt" "dt2.txt" ' had status 127.
How can I avoid that?
setwd()
dt1 <- sample(1:100, 10)
dt2 <- sample(100:200, 10)
write(dt1, "dt1.txt")
write(dt2, "dt2.txt")
zip('data.zip', files =c('dt1.txt',
'dt2.txt'))
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…