Skip to content

Instantly share code, notes, and snippets.

@wush978
Created October 17, 2014 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save wush978/93c0f96b68f529678e2d to your computer and use it in GitHub Desktop.
Save wush978/93c0f96b68f529678e2d to your computer and use it in GitHub Desktop.
decompress bzfile and remove null string and read in fread
fread(sprintf("bzcat %s | tr -d '\\000'", filename))
@FireFighter1017
Copy link

May I ask why it would work if on Linux? (see stackoverflow answer: http://stackoverflow.com/questions/25948777/extract-bz2-file-in-r#) I don't really understand what the regex does and what's the purpose...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment