Skip to content
Back to formatted view

Raw Message

Message-ID: <477933F0.6080205@statistik.uni-dortmund.de>
Date: 2007-12-31T18:24:48Z
From: Uwe Ligges
Subject: readBin differences on Windows and Linux/mac
In-Reply-To: <264855a00712310958o42483fa6g27e0111ed6d01b16@mail.gmail.com>

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