revdep/library.noindex/baker/new/vroom/bench/taxi_writing/base-zstandard.R

{
  library(vroom)
  data <- vroom(file, col_types = c(pickup_datetime = "c"))
  vroom:::vroom_materialize(data, replace = TRUE)
}

{
  con <- pipe(sprintf("zstd > %s", tempfile(fileext = ".zst")), "wb")
  write.table(data, con, sep = "\t", quote = FALSE, row.names = FALSE)
  close(con)
}
zhenkewu/baker documentation built on May 6, 2024, 11:19 p.m.