From hb at maths.lth.se  Fri Apr 25 19:21:17 2003
From: hb at maths.lth.se (Henrik Bengtsson)
Date: Fri Apr 25 18:21:22 2003
Subject: [Rd] Bug in versioned install (was: (fwd) R-1.7.0 : Problem
	withDownloading "dse") (PR#2827)
In-Reply-To: <200304231217.h3NCHapD023050@pubhealth.ku.dk>
Message-ID: <001701c30b46$b310e130$e502eb82@alpha.wehi.edu.au>

A patch for install.packages() can be loaded as

 
source("http://www.maths.lth.se/help/R/patches/rw1070/install.packages.R
")

All fixes are done to the local function unpackPkg() of
install.packages(). The fix is based on the assumption that a bundle (in
zip format) contains directories for packages  , which in turn contains
the DESCRIPTION files needed. Is this assumption correct?! I also made
the temporary directory to be deleted using on.exit() to make the error
recovering a little bit nicer.

Henrik Bengtsson

> -----Original Message-----
> From: r-devel-bounces@stat.math.ethz.ch 
> [mailto:r-devel-bounces@stat.math.ethz.ch] On Behalf Of 
> dmurdoch@pair.com
> Sent: den 23 april 2003 14:18
> To: r-devel@stat.math.ethz.ch
> Cc: R-bugs@biostat.ku.dk
> Subject: [Rd] Bug in versioned install (was: (fwd) R-1.7.0 : 
> Problem withDownloading "dse") (PR#2827)
> 
> 
> The reason dse won't install is because of the new versioned 
> install code.  It assumes that it's dealing with a plain 
> package, and doesn't handle bundles properly.
> 
> Robert, could you look at that?  
> 
> A workaround is as follows.  After the install.packages call 
> fails with this message
> 
> >Error in file(file, "r") : unable to open connection
> >In addition: Warning message:
> >cannot open file `dse/DESCRIPTION' 
> 
> you are left with a temporary directory in $RHOME/library 
> named something like $RHOME/library/file14752 (the number at 
> the end will vary).
> 
> This directory will contain subdirectories dse1, dse2, 
> setRNG, and tframe.  
> 
> If you move those four subdirectories up a level to 
> $RHOME/library, then dse will work.
> 
> Duncan Murdoch
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-devel
> 
>


[Rd] Bug in versioned install (was: (fwd) R-1.7.0 : Problem withDownloading "dse") (PR#2827)
Henrik Bengtsson