From ligges at statistik.uni-dortmund.de  Mon Dec 31 19:24:48 2007
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Mon, 31 Dec 2007 19:24:48 +0100
Subject: [Rd] readBin differences on Windows and Linux/mac
In-Reply-To: <264855a00712310958o42483fa6g27e0111ed6d01b16@mail.gmail.com>
References: <264855a00712310958o42483fa6g27e0111ed6d01b16@mail.gmail.com>
Message-ID: <477933F0.6080205@statistik.uni-dortmund.de>

Can you give a reproducible example, pelase?

Uwe Ligges


Sean Davis wrote:
> I have been trying to use the gunzip function in the R.utils package.  It
> opens a connection to a gzfile, uses readBin to read from that connection,
> and then uses writeBin to write out the raw data to a new file.  This works
> as expected under linux/mac, but under Windows, I get:
> 
> Error in readBin(inn, what= raw(0), size = 1, n=BFR.SIZE)  :
>   negative length vectors are not allowed
> 
> A simple traceback shows the error in readBin.  I wouldn't be surprised if
> this is a programming issue not located in readBin, but I am confused about
> the difference in behaviors on Windows versus mac/linux.  Any insight into
> what I can do to remedy the issue and have a cross-platform gunzip()?
> 
> Thanks,
> Sean
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] readBin differences on Windows and Linux/mac
Uwe Ligges