Created
May 24, 2023 01:23
-
-
Save nt-williams/3afb56f503c7f98077722baf9c7eb644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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