search for: readfile_con

Displaying 3 results from an estimated 3 matches for "readfile_con".

2018 May 10
2
readLines() behaves differently for gzfile connection
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\tref\talt\t <truncated output here> Warning message: In readLines(readfile_con, n = 5) : seek on a gzfile connection returned an internal error > close(readfile_con) > sessionInfo() R...
2018 May 10
1
readLines() behaves differently for gzfile connection
...t; 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, 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\tref\talt\t > > > > <truncated output here> > > > > Warning message: > > In readLines(readfile_con, n = 5) : > > seek on a gzfile connectio...
2018 May 10
0
readLines() behaves differently for gzfile connection
...Heavner <bheavner at gmail.com> 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, 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\tref\talt\t > > <truncated output here> > > Warning message: > In readLines(readfile_con, n = 5) : > seek on a gzfile connection returned an internal error > >&g...