I am trying to unzip some .zip files in REMOTE server. I have tried the exact steps suggested by Kim, and modified 7z to zip.
Unzip password protected zip files in R
However, it does not work for for me. Any idea where went wrong?
file_list <- list.files(path = "C:/Users/Username/Documents", pattern = ".zip", all.files = T)
pw = readline(prompt = "Enter the password: ")
for (file in file_list) {
sys_command = paste0("unzip ", "-P ", pw, " ", file)
system(sys_command)
}
I have a zip file called "Data Science Lifecycle.zip".
Thanks in advance!