[Rd] zip.unpack() crashes R (PR#2818)

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 25 19:49:33 MEST 2003


This was intended to work for any size of zip file, and did prior to 
1.7.0.  A bug in the resizing code was introduced in 1.7.0: it is now
fixed in R-patched.


On Fri, 25 Apr 2003, Henrik Bengtsson wrote:

> > -----Original Message-----
> > From: r-devel-bounces at stat.math.ethz.ch 
> > [mailto:r-devel-bounces at stat.math.ethz.ch] On Behalf Of Prof 
> > Brian Ripley
> > Sent: den 24 april 2003 18:49
> > To: hb at maths.lth.se
> > Cc: r-devel at stat.math.ethz.ch; R-bugs at biostat.ku.dk
> > Subject: Re: [Rd] zip.unpack() crashes R (PR#2818)
> > 
> > 
> > On Tue, 22 Apr 2003 hb at maths.lth.se wrote:
> > 
> > > Full_Name: Henrik Bengtsson
> > > Version: R v1.7.0
> > > OS: WinXP Pro
> > > Submission from: (NULL) (130.235.2.229)
> > > 
> > > 
> > > There seems to be an upper limit of the number of files 
> > (approx 1000 
> > > files) a
> > 
> > Yes, 500 topics.
> 
> OK.
>  
> > > zip-file can contain when unpacking it with zip.unpack(). 
> > This results 
> > > in an R crash. This bug is urgent since install.packages() 
> > relies on 
> > > zip.unpack() and too big packages/bundles won't install with the 
> > > current R v1.7.0 for Windows.
> > 
> > Whyever should a R package have over 1000 files?
> > I think you are not understanding how to use the --use-zip options.
> 
> My --use-zip was indeed broken (HTML Help Workshop was not in the PATH
> anymore -> hhc not found -> make partly failed -> use-zip was not ran,
> but package was still created but without the *.chm file). Fixing that
> brought down the number of files I have quite a bit. However, one can
> still not do anything about all the HTML files.
> 
> You are right, even with a large number of HTML help files, a package
> will probably not contain > 500 files in total in --use-zip is used, but
> a bundle may certainly do it. Using --use-zip my bundle contains 580
> files and then I still have a lot of documentation left to do. If
> bundles will still be around (I have heard rumours packages will only be
> supported), then I think 500 files is a too small limit.
> 
> > Also, look at options("unzip").
> 
> I am aware of the option to use an external unzipper.
>  
> > Why is this bug `urgent':  it has been around for 14 months, 
> > and no one else has encountered a problem?
> 
> The moment I sent it I realized that 'urgent' sounded too requesting, I
> just wanted to point out that I believe installations of package/bundles
> should never be broken since it is such a basic functionality needed.
> 
> Thanks for your help
> 
> Henrik Bengtsson
> 
> > -- 
> > Brian D. Ripley,                  ripley at stats.ox.ac.uk
> > Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> > University of Oxford,             Tel:  +44 1865 272861 (self)
> > 1 South Parks Road,                     +44 1865 272866 (PA)
> > Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> > 
> > ______________________________________________
> > R-devel at stat.math.ethz.ch mailing list 
> > https://www.stat.math.ethz.ch/mailman/listinfo> /r-devel
> 
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list