I am wondering if it is possible to create a zip file from folders. I have one folder and in this folders there are four folders and in there, there are different kind of files. Now I want to zip those four folders recursively with their files.
I tried save()
and gzip()
but they don't do what I want.
Has someone a hint for me?
Right-click on the file or folder. Select “Compressed (zipped) folder”. To place multiple files into a zip folder, select all of the files while hitting the Ctrl button. Then, right-click on one of the files, move your cursor over the “Send to” option and select “Compressed (zipped) folder”.
If you're on a PC using Windows, right-click the folder and in the menu that appears you should select Send to and then under that menu select Compressed (zipped) folder. You then should see a zip-file with the same name as the folder you created appear. You should upload this zip-file on the submission page.
To select non-consecutive files or folders, hold down the Ctrl key as you select the individual files and/or folders. 2. Right-click on the file or folder (or group of files or folders), then point to Send to and select Compressed (zipped) folder.
Scope out the tar command. While it's not zip, a compressed tar file is just as good.
tarfile <- 'newfile.tgz'
tar(tarfile,'/path/of/dir/to/tar/up',compression='gzip')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With