Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing compressed files #348

Closed
dhimmel opened this issue Jan 7, 2016 · 5 comments
Closed

Writing compressed files #348

dhimmel opened this issue Jan 7, 2016 · 5 comments

Comments

@dhimmel
Copy link

@dhimmel dhimmel commented Jan 7, 2016

Is there currently any way to write to a compressed text file?

Ideally, compression would be automatically detected from the path (ending in .gz, .bz2, or .xz) argument of readr::write_tsv().

@holgerbrandl
Copy link

@holgerbrandl holgerbrandl commented May 18, 2016

+1

Loading

@hadley
Copy link
Member

@hadley hadley commented Jun 2, 2016

The best way to do this is probably to use the C-level connection API (which I think will require a dependency on R 3.3.0), and then create the connection in R code.

Loading

@ivan-krukov
Copy link

@ivan-krukov ivan-krukov commented Oct 12, 2016

What does ready label imply here? Next release?

Loading

@mbojan
Copy link

@mbojan mbojan commented Jan 19, 2017

+1

IMHO, it would be ideal for path to accept R connection (like write.csv does), including gzfile() or bzfile().

Loading

@wbzyl
Copy link

@wbzyl wbzyl commented Jan 29, 2017

👍

It would be nice to have both functionalities:

write_csv(df, bzfile("x.csv.bz2"))

and

read_csv(bzfile("x.csv.bz2"))

instead of replacing the former with:

write.csv(df, bzfile("x.csv.bz2"), row.names = F)

Loading

@hadley hadley removed the ready label Feb 10, 2017
@lock lock bot locked and limited conversation to collaborators Sep 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants