Displaying 1 result from an estimated 1 matches for "xxxxxmpxxxxxxesxxxxxxxxxxp".
2013 May 08
1
getting corrupted data when using readBin() after seek() on a gzfile connection
...t; seek(con)
[1] 520
> rawToChar(readBin(con, "raw", n=26))
[1] "zabcdefghijklmnopqrstuvvuv"
## Offset 2600: very messed up
> seek(con, where=2600)
[1] 546
> seek(con)
[1] 2600
> rawToChar(readBin(con, "raw", n=26))
[1] "xxxxxmpxxxxxxesxxxxxxxxxxp"
## Offset 10400: see previous email (subject: "error when calling
## seek() twice on a gzfile connection")
> seek(con, where=10400)
[1] 2626
Warning message:
In seek.connection(con, where = 10400) :
seek on a gzfile connection returned an internal error...