Dear all,
In R-devel (2011-09-23 r57050), I'm running into a serious problem
with seek()ing on connections opened with gzfile(). A warning is
generated and the file position does not seek to the requested
location. It doesn't seem to occur all the time - I tried to create a
small example file to
Basically seek with zlib is flaky: we've stumbled on several errors.
If it worked for you in the past, count yourself lucky. I'd suggest
you avoid relying on it in your packages.
On Fri, 23 Sep 2011, Jon Clayden wrote:
Dear all,
In R-devel (2011-09-23 r57050), I'm running into a serious
seek() in general is a bad idea IMO if you are writing cross-platform code.
?seek
Warning:
Use of ‘seek’ on Windows is discouraged. We have found so many
errors in the Windows implementation of file positioning that
users are advised to use it only at their own risk, and asked
Thanks for the replies. I take the point, although it does seem like a
substantial regression (on non-Windows platforms).
I like to keep the external dependencies of my packages minimal, but I
will look into the mmap package - thanks, Jeff, for the tip.
Aside from that, though, what is the
On Fri, 23 Sep 2011, Jon Clayden wrote:
Thanks for the replies. I take the point, although it does seem like a
substantial regression (on non-Windows platforms).
I like to keep the external dependencies of my packages minimal, but I
will look into the mmap package - thanks, Jeff, for the tip.