I am trying to download a medium-sized zip archive (.zip file ~ 140 MB), which can be found here (direct link) (source: Deutsche Bundesbank (site) ). After downloading the file, it is saved as "BKK-Download.zip". The file contains ~ 50.000s xml files with some rather strange names (for example, "bbai3.q.de.nvbf90.f.kv.a1.s.2.nezxml") in three subfolders.
In the first step, I try to open the file "tree.xml" in the "tree" folder, in the second step I will open the file using the XML package. I try the first step using the unpack function:
f.path <- "path to the file" dat <- unzip(paste0(f.path, "BKK-Download.zip")) library(XML) xml.content <- xmlParse(dat[1]) # for the case that "tree.xml" is the first xml-file
Instead, the unzip command returns the following error:
Warning message: In unzip(paste0(f.path, "BKK-Download.zip")) : error 1 in extracting from zip file
If I try this with a test zip archive with several folders and complex file names (such as the ones mentioned above), everything works fine.
Any ideas why this error may occur?
David source share