[R] R 3.0.3, Windows 7: Problem installing XML package

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Apr 13 01:22:34 CEST 2014



On 12.04.2014 22:39, Alpesh Pandya wrote:
> Thank you for response Uwe. I tried multiple times by downloading the zip
> file from many sources but still the same error. This is a major road block
> for me in using R. Appreciate any help on this.

Please ask your local IT staff.

I get, using the same mirror:

 > options("repos"=c(CRAN="http://watson.nci.nih.gov/cran_mirror"))
 > install.packages("XML", lib="d:/temp")
trying URL 
'http://watson.nci.nih.gov/cran_mirror/bin/windows/contrib/3.0/XML_3.98-1.1.zip'
Content type 'application/zip' length 4288136 bytes (4.1 Mb)
opened URL
downloaded 4.1 Mb

package ‘XML’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
         d:\temp\RtmpqMqL8L\downloaded_packages



Best,
Uwe Ligges





>
>
> On Fri, Apr 11, 2014 at 6:53 PM, Uwe Ligges <ligges at statistik.tu-dortmund.de
>> wrote:
>
>> Works for me.
>>
>> Best,
>> Uwe Ligges
>>
>>
>>
>>
>> On 11.04.2014 17:10, Alpesh Pandya wrote:
>>
>>> Using install.package('XML') command produces this error:
>>>
>>> trying URL
>>> '
>>> http://watson.nci.nih.gov/cran_mirror/bin/windows/
>>> contrib/3.0/XML_3.98-1.1.zip
>>> '
>>> Content type 'application/zip' length 4288136 bytes (4.1 Mb)
>>> opened URL
>>> downloaded 4.1 Mb
>>>
>>> Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package",
>>> "Type")) :
>>>     cannot open the connection
>>> In addition: Warning messages:
>>> 1: In download.file(url, destfile, method, mode = "wb", ...) :
>>>     downloaded length 4276224 != reported length 4288136
>>> 2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
>>> 3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
>>>     cannot open compressed file 'XML/DESCRIPTION', probable reason 'No such
>>> file or directory'
>>>
>>>
>>> Upon receiving this error, I downloaded XML_3.98-1.1.zip directly from
>>> cran
>>> site. But this zip file is not a valid archive (cannot open using winzip).
>>> Also trying to install using this downloaded file produces the following
>>> error:
>>>
>>> Installing package into 'C:/Users/APandya/Documents/R/win-library/3.0'
>>> (as 'lib' is unspecified)
>>> Warning in install.packages :
>>>     error 1 in extracting from zip file
>>> Warning in install.packages :
>>>     cannot open compressed file 'XML/DESCRIPTION', probable reason 'No such
>>> file or directory'
>>> Error in install.packages : cannot open the connection
>>>
>>> I  downloaded this zip file from multiple sources and tried to install
>>> with
>>> same result.
>>>
>>>
>
>




More information about the R-help mailing list