Try to create a zip file from one folder using R.
It mentioned \"Rcompression\" package here: Creating zip file from folders
But I didn\'t find where I can downl
You can install from the omegahat
repos:
install.packages('Rcompression', repos = "http://www.omegahat.org/R", type = "source")
for windows you will need to jump through hoops installing zlib and bzip2 and linking appropriately.
utils::zip
can be used in some cases. There are a number of issues with it. One case is that the maximum length of the string that you can use at the command prompt is 8191 characters (2047 characters on some versions) for windows. If you are zipping a directory with alot of characters for the names of directories/files this will cause issues. For example if you zip your firefox profile directory. Also I found the zip command needed to be issued relative the directory I was zipping to use relative directory names. Rcompression
has a altNames
argument which handles this.
That being said I have always had problems getting Rcompression
to run on windows.