From duncan@research.bell-labs.com  Mon Sep  4 18:43:53 2000
From: duncan@research.bell-labs.com (Duncan Temple Lang)
Date: Mon, 4 Sep 2000 13:43:53 -0400 (EDT)
Subject: [Rd] R INSTALL *.tgz fails (minor docs/feature bug) (PR#652)
In-Reply-To: <Pine.GSO.4.21.0009041012110.6541-100000@atlas.biostat.washington.edu>
 (message from Thomas Lumley on Mon, 4 Sep 2000 10:16:43 -0700 (PDT))
Message-ID: <200009041743.NAA07492@jessie.research.bell-labs.com>



I believe the problem with this is that the R INSTALL expects version
information in the name of the .tar.gz or .tgz file.
So something like
   rmutil_1.0.tgz 
and 
   R CMD INSTALL rmutil_1.0.tgz
avoids that particular problem.
(Specifically, it computes the package name by removing everything
after the first _ in the name of the file.)

It took me a while to find out what was happening some months ago so I
thought I'd save others that hassle.


  D.

> Date: Mon, 4 Sep 2000 10:16:43 -0700 (PDT)
> From: Thomas Lumley <thomas@biostat.washington.edu>
> cc: r-devel@stat.math.ethz.ch, R-bugs@biostat.ku.dk
> Sender: owner-r-devel@stat.math.ethz.ch
> Precedence: bulk
> 
> On Sat, 2 Sep 2000 bobbyo@speakeasy.org wrote:
> 
> > R Team,
> > 
> > 	I was attempting to install Lindsey's rmutil.tgz and other
> > non-CRAN packages using 'R INSTALL', for example 'R INSTALL rmutil.tgz'
> > after downloading 'rmutil.tgz' from Lindsey's page (as linked from
> > r-project.org page).
> > 
> > 	Directly using the compressed file as 'R INSTALL rmutil.tgz'
> > failed, though the shell help from 'R INSTALL --help' implied this would
> > work.
> > 
> > 	However, when I simply renamed using 'mv rmutil.tgz rmutil' and
> > then ran 'R INSTALL rmutil', that worked.
> > 
> > 	Adding a note to rename the .tgz files without the .tgz
> > extension, or changing R INSTALL to allow filename extensions when
> > installing would be a nice ease-of-use feature.
> > 
> > 	(by the way, I was able to use R INSTALL rmutil if I unpacked
> > rmutil using 'cat rmutil.tgz | tar xvz' and then ran 'R INSTALL rmutil'.)
> 
> 
> R INSTALL is somewhat fussy about package format when used on compressed
> files. I don't think Jim Lindsey's packages have ever installed without
> uncompressing first. I have had the same thing happen with local packages
> of functions I've created for convenience.
> 
> Fortunately it's fairly painless to uncompress them.
> 
> 	-thomas
> 
> Thomas Lumley
> Assistant Professor, Biostatistics
> University of Washington, Seattle
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 


-- 
_______________________________________________________________

Duncan Temple Lang                duncan@research.bell-labs.com
Bell Labs, Lucent Technologies    office: (908)582-3217
700 Mountain Avenue, Room 2C-259  fax:    (908)582-3340
Murray Hill, NJ  07974-2070       
         http://cm.bell-labs.com/stat/duncan

      "Languages shape the way we think, and determine what 
       we can think about."        
                                      Benjamin Whorf
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] R INSTALL *.tgz fails (minor docs/feature bug) (PR#652)
Duncan Temple Lang