Skip to content

Instantly share code, notes, and snippets.

@czeildi
Created December 11, 2017 14:15
Show Gist options
  • Save czeildi/019b4460a5fbe5000ae0c944da2eda97 to your computer and use it in GitHub Desktop.
Save czeildi/019b4460a5fbe5000ae0c944da2eda97 to your computer and use it in GitHub Desktop.
gzip all csv files in given folder
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