can someone point me to a way of unzipping and opening .7z files through R?
Here is an example of a file that I want to download:
utils::download.file(
url = "ftp://ftp.mtps.gov.br/pdet/microdados/RAIS/AC2008.7z")
All files that I want are .txt once unzipped.
If I try unzip("./AC2008.7z")
, I get the message:
In unzip(fileName, exdir = mainDir, subDir) : error 1 in extracting from zip file
Any help?
I don't necessarily need to unzip the files - If somehow R opened the underlying .txt directly, it would be okay.
The solution should be such that it is implementable within a function in a package.