Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Prof Brian Ripley
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.

Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Jeffrey Ryan
Yes, inelegant would be a good description. Sadly a fact we have to put up with I guess. FWIW, I too don't like dependencies. mmap has none, and is cross platform, but I get the idea. Good luck, Jeff On Fri, Sep 23, 2011 at 11:13 AM, Jon Clayden wrote: > Thanks for the replies. I take the poi

Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Jon Clayden
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 altern

Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Jeffrey Ryan
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 no

Re: [Rd] Issue with seek() on gzipped connections in R-devel

2011-09-23 Thread Prof Brian Ripley
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 pro