r-lib / archive

R bindings to libarchive, supporting a large variety of archive formats
https://archive.r-lib.org/
Other
145 stars 17 forks source link

Error with .7z file "The file content is encrypted, but currently not supported" #91

Open twey2 opened 1 year ago

twey2 commented 1 year ago

I have a .7z file that is not password protected that cannot be read or extracted with archive on an RStudio server, but is extracted without issue on a desktop with 7-zip.

Running archive("FILE.7z"), correctly prints the file contents (a folder with 2 csv files), but running read.csv(archive_read("FILE.7z", file = 2, format = "7zip")) generates "Error in open.connection(file, "rt") : The file content is encrypted, but currently not supported". Running archive_extract("FILE.7z") generates "Error: archive_extract.cpp:21 archive_read_data_block(): The file content is encrypted, but currently not supported".

Unfortunately I cannot share the example as the data must remain on secure servers, but I was wondering if there is a known issue and/or solution for reading and extracting .7z files on a server? Thank you!