From pgilbert at bank-banque-canada.ca  Fri Apr 25 14:06:15 2003
From: pgilbert at bank-banque-canada.ca (Paul Gilbert)
Date: Fri Apr 25 19:07:13 2003
Subject: [Rd] Bug in versioned install (was: (fwd) R-1.7.0 : Problem
	withDownloading  "dse") (PR#2827)
In-Reply-To: <001701c30b46$b310e130$e502eb82@alpha.wehi.edu.au>
References: <001701c30b46$b310e130$e502eb82@alpha.wehi.edu.au>
Message-ID: <3EA96B07.40405@bank-banque-canada.ca>

Henrik Bengtsson wrote:
> 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

When I put the bundle together, the bundle directory contains a 
DESCRIPTION file, and each package subdirectory contains a file
DESCRIPTION.in. At some point the DESCRIPTION and DESCRIPTION.in files 
are cat'ed together in each package directory (but not by me). So, the 
assumption may be correct at some point in the process, put it is not 
correct at the beginning.

Paul

> 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
>>
>>
> 
> 
> ______________________________________________
> 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)
Paul Gilbert