[R] Installling source package

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Feb 1 07:52:14 CET 2010


Most likely you have a corrupted tarball, so I would compare its size 
with that on the CRAN master (which to me looks like 680366 bytes).

Note though that you need to get XML to work on Windows

- to get appropriate versions of libxml2 and its dependencies iconv 
and zlib.
- to make changes to the XML source tarball.

So why not just use the binary provided on CRANextras?  (The changed 
sources used there are at
http://www.stats.ox.ac.uk/pub/RWin/GPLcompliance/XML_2.6-0.tar.gz, but 
you will need libxml2 etc as well.)

On Mon, 1 Feb 2010, Steven Kang wrote:

> Hi R users,
>
> Im trying to install XML source package (in window platform) using the
> following command.
>
> *install.packages(pkgs = "C:\\Documents and
> Settings\\skang\\Desktop\\Softwares\\R\\Library\\XML_2.6-0.tar.gz", repos =
> NULL, type = "source")*
>
> and get the following result.
> gzip: stdin: unexpected end of file
> /cygdrive/c/Rtools/bin/tar: Unexpected EOF in archive
> /cygdrive/c/Rtools/bin/tar: Unexpected EOF in archive
> /cygdrive/c/Rtools/bin/tar: Error is not recoverable: exiting now
> ERROR: error unpacking tarball
> Warning message:
> In install.packages(pkgs = "C:\\Documents and
> Settings\\skang\\Desktop\\SK\\Softwares\\R\\Library\\XML_2.6-0.tar.gz",  :
>  installation of package
> 'C:/DOCUME~1/skang/Desktop/SOFTWA~1/R/Library/XML_2.6-0.tar.gz' had non-zero
> exit status
> I have installed Rtools from http://www.murdoch-sutherland.com/Rtools/ and
> have added 'Rtools\bin' to the environment variables path.
>
> Am I missing something?
>
>
> -- 
> Steven
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list