Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for writing to gzip (.gz) with fwrite #2016
Comments
|
+1 |
1 similar comment
|
+1 |
|
Dear Mr. How can I solve this problem? |
|
+1 |
|
Please don't post comments with simply "+1". This adds absolutely no value. Either write something of value that adds something to the discussion or use the thumbs up emoticon / reaction on the original post to express interest in the issue and a solution to it. I'm in favor of deleting such comments, including mine BTW, because it is of no consequence to the technical discussion of this issue as writing "+1". Please, people, please ;) |
write.csvcan handle the following:But
fwritecannot:(because the
gzfobject is more complicated than just being a file path).fwrite(DT, tmp.gz), as expected, does not perform compression -- the output is the same size asfwrite(DT, tempfile())(which is different fromwrite.csv).I'm using
fwriteto pipe some output to Vowpal Wabbit, trying to use the--compressedargument to save on some disk space. Workaround is tofwritethengzip, but this seems sub-optimal.