[R] problems with gzip

Jonathan Baron baron at cattell.psych.upenn.edu
Sat Jun 15 21:01:04 CEST 2002

On 06/15/02 18:28, juan pablo perez wrote:
>I´m working with contributed packages downloaded today.When I try to install 
>them with R CMD INSTALL an error message says that the package is not a gzip 
>file. This occurs both in Suse 7.3 and in Debian Potato 2.2. I had not this 
>problem when instaled the same packages just half a year ago. I think this 
>is related with cuestions about GNU license or similar but, knows anybody 
>what should I do to resolve the problem?

Well, is it true that they aren't gzip files?  Can you unzip them
with gunzip?  If not, then problem is not in R.  You can also
look at the extension: if it is .gz or .tgz, they are at least
supposed to be gzip files.

My memory is that the INSTALL command will check to see whether
the file is zipped or not (but I can't find this documented right
now).  If I'm correct, then the problem is that the files are not
gzip files although they are labeled as such.  In that case the
problem might lie in how you downloaded them.

It could also be that they are really tar files.  What happens if
you look at the file with more?  If you can read anything, then
it is probably a tar file and you might be able to re-lable it.

You might try again by starting R and using the
function rather than R CMD INSTALL.  This will probably choose
the right method of downloaing.  In fact, I would try this first.


Jonathan Baron, Professor of Psychology, University of Pennsylvania
R page:               http://finzi.psych.upenn.edu/
r-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list