Skip to content

Instantly share code, notes, and snippets.

@nt-williams
Created May 24, 2023 01:23
Show Gist options
  • Save nt-williams/3afb56f503c7f98077722baf9c7eb644 to your computer and use it in GitHub Desktop.
Save nt-williams/3afb56f503c7f98077722baf9c7eb644 to your computer and use it in GitHub Desktop.
read_zip_rds <- function(tar) {
files <- unzip(tar, list = TRUE)$Name
p <- progressr::progressor(along = 1:length(files))
purrr::map(files, function(file) {
p()
con <- gzcon(unz(tar, file))
x <- readRDS(con)
close(con)
x
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment