Created
December 11, 2017 14:15
-
-
Save czeildi/019b4460a5fbe5000ae0c944da2eda97 to your computer and use it in GitHub Desktop.
gzip all csv files in given folder
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
gzipData <- function(target_folder = "repo-name/data") { | |
purrr::walk( | |
list.files(target_folder, "\\.csv$"), | |
~ system(glue::glue("gzip {target_folder}/{.x}")) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment