readr icon indicating copy to clipboard operation
readr copied to clipboard

Prompt to install archive if you try to read file types that archive supports.

Open jimhester opened this issue 3 years ago • 2 comments

readr could take more advantage of archive automatically, to read from things like 7z, RAR, tar.gz etc. archives.

There is some code currently in vroom to use archive if it is installed

https://github.com/r-lib/vroom/blob/1b8354671b85d40e3797116be892bd298ebab850/R/path.R#L106-L126

But we might want to be more proactive and check for these types of extensions and prompt users to install archive to read them.

jimhester avatar Nov 24 '21 14:11 jimhester

Should archive export something like archive_formats() to make it easier to identify if a file extension is supported? https://github.com/r-lib/vroom/blob/1b8354671b85d40e3797116be892bd298ebab850/R/path.R#L171

DavisVaughan avatar Nov 24 '21 14:11 DavisVaughan

yeah, I think that would make sense.

jimhester avatar Nov 24 '21 14:11 jimhester