From p.dalgaard at biostat.ku.dk  Tue Apr 22 20:10:14 2003
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard BSA)
Date: Tue Apr 22 19:07:57 2003
Subject: [Rd] zip.unpack() crashes R (PR#2818)
In-Reply-To: <200304221523.h3MFNSpD013853@pubhealth.ku.dk>
References: <200304221523.h3MFNSpD013853@pubhealth.ku.dk>
Message-ID: <x2ist6bgqx.fsf@biostat.ku.dk>

hb@maths.lth.se writes:

> # 1. Running the script several times with N = 900 crashes R or generates 
> # the error:
> # Error in zip.unpack("dir.zip", "c:/tmp") :
> #        can not set length of non-vector
> # 2. Running the script twice with N = 1002 crashes R
> # 3. Running the script twice with N = 1003 crashes R (every time?)
> # 4. Running the script twice with N = 2000 crashes R (every time!)
> N <- 1003
....
> # Unse zip.unpack(), which is used by install.packages(), to unpack it.
> zip.unpack("dir.zip", "c:/tmp")

Reproducible on Linux with

.Internal(int.unzip("dir.zip",NULL, "/tmp"))

instead of zip.unpack.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


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