1 Jan 2008 16:51
Re: [Rd] readBin differences on Windows and Linux/mac
Uwe Ligges <ligges <at> statistik.uni-dortmund.de>
2008-01-01 15:51:33 GMT
2008-01-01 15:51:33 GMT
I see. It is either a bug or something related to the following
paragraph from ?seek:
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 not to waste the R developers' time with bug
reports on Windows' deficiencies.
I will investigate more closely when I am back in office end of this week.
Best,
Uwe
Sean Davis wrote:
> Sorry, Uwe. Of course:
>
> Both in relatively recent R-devel (one mac, one windows):
>
> ### gunzip pulled from R.utils to be a simple function
> ### In R.utils, implemented as a method
> gunzip <- function(filename, destname=gsub("[.]gz$", "", filename),
> overwrite=FALSE, remove=TRUE, BFR.SIZE=1e7) {
> if (filename == destname)
> stop(sprintf("Argument 'filename' and 'destname' are identical: %s",
> filename));
> if (!overwrite && file.exists(destname))
> stop(sprintf("File already exists: %s", destname));
>
> inn <- gzfile(filename, "rb");
> on.exit(if (!is.null(inn)) close(inn));
(Continue reading)
RSS Feed