Re: [Rd] readLines() behaves differently for gzfile connection

2018-05-14 Thread Michael Lawrence
I haven't been able to reproduce the empty lines issue on my Mac or Linux laptop, but I have yet to try that container. The warning is because of a SEEK_SET to -1, which apparently is unsupported by zlib. Maybe the zlib version in that container is getting confused. I'm not sure why readLines() wa

Re: [Rd] readLines() behaves differently for gzfile connection

2018-05-10 Thread Ben Heavner
You bet - it's available on github at https://github.com/UW-GAC/wgsaparsr/blob/master/tests/testthat/1k_annotation.gz -Ben On Thu, May 10, 2018 at 4:17 PM, Michael Lawrence wrote: > Would it be possible to get that file or a representative subset of it > somewhere so that I can reproduce this?

Re: [Rd] readLines() behaves differently for gzfile connection

2018-05-10 Thread Michael Lawrence
Would it be possible to get that file or a representative subset of it somewhere so that I can reproduce this? Thanks, Michael On Thu, May 10, 2018 at 3:31 PM, Ben Heavner wrote: > When I read a .gz file with readLines() in 3.4.3, it returns text (and a > warning). In 3.5.0, it gives a warning,

[Rd] readLines() behaves differently for gzfile connection

2018-05-10 Thread Ben Heavner
When I read a .gz file with readLines() in 3.4.3, it returns text (and a warning). In 3.5.0, it gives a warning, but no text. Is this expected behavior or a bug? 3.4.3: > source_file = "1k_annotation.gz" > readfile_con <- gzfile(source_file, "r") > readLines(readfile_con, n = 5) [1] "#chr\tpos\tre