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

2014-04-11 Thread Alpesh Pandya
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.

-- 
Thanks and Regards
Alpesh

[[alternative HTML version deleted]]

__
R-help@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.


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

2014-04-12 Thread Alpesh Pandya
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.


On Fri, Apr 11, 2014 at 6:53 PM, Uwe Ligges  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.
>>
>>


-- 
Thanks and Regards
Alpesh

[[alternative HTML version deleted]]

__
R-help@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.


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

2014-04-12 Thread Alpesh Pandya
@Uwe I tried the same steps from office as well as home network with same
results. Are you using windows 7 with R 3.0.3?

I have seen same question being asked by others without any resolution. Is
anything special about XML package? I am OK use older version of package
but in archives there are no zip files (only gz files). Is windows platform
not recommended for R?


On Sat, Apr 12, 2014 at 7:22 PM, Uwe Ligges  wrote:

>
>
> 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 <
>> lig...@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.
>>>>
>>>>
>>>>
>>
>>


-- 
Thanks and Regards
Alpesh

[[alternative HTML version deleted]]

__
R-help@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.


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

2014-04-14 Thread Alpesh Pandya
I have tried these sources (almost all US mirrors):

http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://cran.stat.ucla.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://streaming.stat.iastate.edu/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://ftp.ussg.iu.edu/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://rweb.quant.ku.edu/cran/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://watson.nci.nih.gov/cran_mirror/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://cran.mtu.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://cran.wustl.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://cran.case.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://ftp.osuosl.org/pub/cran/bin/windows/contrib/3.0/XML_3.98-1.1.zip
http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip

I have confirmed with IT that there is no restriction on downloading this
zip file from any of these sources. Also I am getting same error when I try
from my home network as well.


On Sun, Apr 13, 2014 at 9:46 AM, Uwe Ligges  wrote:

>
>
> On 13.04.2014 01:30, Alpesh Pandya wrote:
>
>> @Uwe I tried the same steps from office as well as home network with same
>> results. Are you using windows 7 with R 3.0.3?
>>
>> I have seen same question being asked by others without any resolution. Is
>> anything special about XML package? I am OK use older version of package
>> but in archives there are no zip files (only gz files). Is windows
>> platform
>> not recommended for R?
>>
>
> Right, and you can try to install these from sources.
> But I doubt you need it. You still have not told us if you tried another
> mirror to download the XML file from and what you local IT support tells
> you while your downloads are incomplete.
>
> Best,
> Uwe Ligges
>
>
>
>
>
>
>>
>> On Sat, Apr 12, 2014 at 7:22 PM, Uwe Ligges <
>> lig...@statistik.tu-dortmund.de
>>
>>> wrote:
>>>
>>
>>
>>>
>>> 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 <
>>>> lig...@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
>&

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

2014-04-14 Thread Alpesh Pandya
Thank you for response Rui.

I still get the same error with this repository.

Installing package into ‘C:/Users/APandya/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL '
http://cran.dcc.fc.up.pt/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'



On Mon, Apr 14, 2014 at 2:17 PM, Rui Barradas  wrote:

> Hello,
> I have package XML installed on Windows 7, R 3.0.3 and I had no problem at
> all. Can't you try (it worked with me)
>
> install.packages("XML", repos = "http://cran.dcc.fc.up.pt";)
>
> Hope this helps,
>
> Rui Barradas
>
> Em 14-04-2014 16:24, Alpesh Pandya escreveu:
>
>  I have tried these sources (almost all US mirrors):
>>
>> http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://cran.stat.ucla.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://streaming.stat.iastate.edu/CRAN/bin/windows/contrib/
>> 3.0/XML_3.98-1.1.zip
>> http://ftp.ussg.iu.edu/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://rweb.quant.ku.edu/cran/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://watson.nci.nih.gov/cran_mirror/bin/windows/
>> contrib/3.0/XML_3.98-1.1.zip
>> http://cran.mtu.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://cran.wustl.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://cran.case.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://ftp.osuosl.org/pub/cran/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>> http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>
>> I have confirmed with IT that there is no restriction on downloading this
>> zip file from any of these sources. Also I am getting same error when I
>> try
>> from my home network as well.
>>
>>
>> On Sun, Apr 13, 2014 at 9:46 AM, Uwe Ligges <
>> lig...@statistik.tu-dortmund.de
>>
>>> wrote:
>>>
>>
>>
>>>
>>> On 13.04.2014 01:30, Alpesh Pandya wrote:
>>>
>>>  @Uwe I tried the same steps from office as well as home network with
>>>> same
>>>> results. Are you using windows 7 with R 3.0.3?
>>>>
>>>> I have seen same question being asked by others without any resolution.
>>>> Is
>>>> anything special about XML package? I am OK use older version of package
>>>> but in archives there are no zip files (only gz files). Is windows
>>>> platform
>>>> not recommended for R?
>>>>
>>>>
>>> Right, and you can try to install these from sources.
>>> But I doubt you need it. You still have not told us if you tried another
>>> mirror to download the XML file from and what you local IT support tells
>>> you while your downloads are incomplete.
>>>
>>> Best,
>>> Uwe Ligges
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>> On Sat, Apr 12, 2014 at 7:22 PM, Uwe Ligges <
>>>> lig...@statistik.tu-dortmund.de
>>>>
>>>>  wrote:
>>>>>
>>>>>
>>>>
>>>>
>>>>> 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.g

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

2014-04-20 Thread Alpesh Pandya
I keep on trying from various networks but I still get the same error. I
don't this this has anything to do with network or ability to download the
package (as I can install other packages fine). This must be something in
base R or dependencies issues (that R is not spelling out).

I know R is geared for Mac and Windows is kind of looked down upon but I
have no option but use windows and need this XML package running to
complete my education. Any help on this would be appreciated.


On Mon, Apr 14, 2014 at 2:24 PM, Alpesh Pandya wrote:

> Thank you for response Rui.
>
> I still get the same error with this repository.
>
> Installing package into ‘C:/Users/APandya/Documents/R/win-library/3.0’
> (as ‘lib’ is unspecified)
> trying URL '
> http://cran.dcc.fc.up.pt/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'
>
>
>
> On Mon, Apr 14, 2014 at 2:17 PM, Rui Barradas wrote:
>
>> Hello,
>> I have package XML installed on Windows 7, R 3.0.3 and I had no problem
>> at all. Can't you try (it worked with me)
>>
>> install.packages("XML", repos = "http://cran.dcc.fc.up.pt";)
>>
>> Hope this helps,
>>
>> Rui Barradas
>>
>> Em 14-04-2014 16:24, Alpesh Pandya escreveu:
>>
>>  I have tried these sources (almost all US mirrors):
>>>
>>> http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://cran.stat.ucla.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://streaming.stat.iastate.edu/CRAN/bin/windows/contrib/
>>> 3.0/XML_3.98-1.1.zip
>>> http://ftp.ussg.iu.edu/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://rweb.quant.ku.edu/cran/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://watson.nci.nih.gov/cran_mirror/bin/windows/
>>> contrib/3.0/XML_3.98-1.1.zip
>>> http://cran.mtu.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://cran.wustl.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://cran.case.edu/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://ftp.osuosl.org/pub/cran/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>> http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/3.0/XML_3.98-1.1.zip
>>>
>>> I have confirmed with IT that there is no restriction on downloading this
>>> zip file from any of these sources. Also I am getting same error when I
>>> try
>>> from my home network as well.
>>>
>>>
>>> On Sun, Apr 13, 2014 at 9:46 AM, Uwe Ligges <
>>> lig...@statistik.tu-dortmund.de
>>>
>>>> wrote:
>>>>
>>>
>>>
>>>>
>>>> On 13.04.2014 01:30, Alpesh Pandya wrote:
>>>>
>>>>  @Uwe I tried the same steps from office as well as home network with
>>>>> same
>>>>> results. Are you using windows 7 with R 3.0.3?
>>>>>
>>>>> I have seen same question being asked by others without any
>>>>> resolution. Is
>>>>> anything special about XML package? I am OK use older version of
>>>>> package
>>>>> but in archives there are no zip files (only gz files). Is windows
>>>>> platform
>>>>> not recommended for R?
>>>>>
>>>>>
>>>> Right, and you can try to install these from sources.
>>>> But I doubt you need it. You still have not told us if you tried another
>>>> mirror to download the XML file from and what you local IT support tells
>>>> you while your downloads are incomplete.
>>>>
>>>> Best,
>>>> Uwe Ligges
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> On Sat, Apr 12, 2014 at 7:22 PM, Uwe Ligges <
>>>>> lig...@statistik.tu-dortmund.de
>>>>>
>>>>>  wrote:
>>>>>>

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

2014-04-21 Thread Alpesh Pandya
Frede's suggestion was very helpful to me and I could resolve the issue
finally.

I created new archive manually using source code for XML package (only R
code) and winzip utility. Then ran this command for installation and that
worked fine.

install.packages("C:/Course/WorkingData/XML_3.98-1.1.zip", repos = NULL)
Installing package into ‘C:/Users/APandya/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
package ‘XML’ successfully unpacked and MD5 sums checked




On Mon, Apr 21, 2014 at 9:28 AM, Duncan Murdoch wrote:

> On 21/04/2014 9:19 AM, Milan Bouchet-Valat wrote:
>
>> Le lundi 21 avril 2014 à 07:21 -0400, Duncan Murdoch a écrit :
>> > On 21/04/2014, 7:10 AM, Milan Bouchet-Valat wrote:
>> > > Le lundi 21 avril 2014 à 11:38 +0200, Frede Aakmann Tøgersen a écrit :
>> > >> Hi
>> > >>
>> > >> Couldn't find a zip file in the archives.
>> > >>
>> > >> Why didn't 'R CMD build' (in a command shell on Windows) not make a
>> > >> zip file? I did try to build from the climatol library that holds the
>> > >> typical files as DESCRIPTION, LICENSE, etc. as well as folders like
>> R,
>> > >> etc.
>> > > R CMD build produces *source* packages, and .zip packages are
>> *binary*.
>> > >
>> > >> Did you see the debug information on read.fcf? For me it seems like R
>> > >> has open a file handler to the DESCRIPTION file. Wouldn't the error
>> > >> already be thrown there and not when read.fcf is called if the
>> .tar.gz
>> > >> format was the problem?
>> > >>
>> > >> I'll try and locate a zip
>> > > Does install.packages(choose.file(), type="source") work?
>> >
>> > That will also need "repos=NULL", or it will go out to a repository to
>> > look for the package.
>> Usually install.packages() prints a warning and assumes repos=NULL iwhen
>> type="source". And since I'm lazy, I've sticked to the short
>> version. ;-)
>>
>
> Right, if the file is a .tar.gz file, it does that.  I often install
> directly from source directories, and there it fails.
>
> Duncan Murdoch
>
>
>
>> > That should work if the package doesn't have compiled code.  It will
>> > handle compiled code only if Frede has the appropriate tools installed.
>> >
>> >
>> > I'm not sure
>> > > what utils:::menuInstallLocal() does.
>> >
>> > It is essentially
>> >
>> > install.packages(choose.file(), type="binary", repos=NULL)
>> >
>> > so it's not what Frede needs.
>> OK, so that's what I suspected.
>>
>>
>> Regards
>>
>> > Duncan
>> > >
>> > >
>> > > Regards
>> > >
>> > >
>> > >> Sendt fra Samsung mobil
>> > >>
>> > >>
>> > >>  Oprindelig meddelelse 
>> > >> Fra: Jeff Newmiller
>> > >> Dato:21/04/2014 09.44 (GMT+01:00)
>> > >> Til: Frede Aakmann Tøgersen ,Alpesh Pandya ,Rui Barradas
>> > >> Cc: r-help@r-project.org,Uwe Ligges ,Duncan Murdoch
>> > >> Emne: RE: [R] R 3.0.3, Windows 7: Problem installing XML package
>> > >>
>> > >> Frede... Windows uses zip files (binary, aka pre-compiled format)
>> for packages by default, because most installations don't have the
>> development tools installed. You need to setup RTools and use the "source"
>> option to install_package in order to handle the tar.gz package file, or
>> download and install the zip file instead.
>> > >> 
>> ---
>> > >> Jeff NewmillerThe .   .  Go
>> Live...
>> > >> DCN:Basics: ##.#.   ##.#.
>>  Live Go...
>> > >>Live:   OO#.. Dead: OO#..
>>  Playing
>> > >> Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
>> > >> /Software/Embedded Controllers)   .OO#.   .OO#.
>>  rocks...1k
>> > >> 
>> ---
>> > >> Sent from my phone. Please excuse my brevity.
>> > >>
>> > >> On April 20, 2014 11:01:17 PM PDT, "Frede 

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

2014-04-21 Thread Alpesh Pandya
@Duncan I understand. But it seems to be working. At least I could use
basic functions like htmlParse.


On Mon, Apr 21, 2014 at 10:37 AM, Duncan Murdoch
wrote:

> On 21/04/2014 10:30 AM, Alpesh Pandya wrote:
>
>> Frede's suggestion was very helpful to me and I could resolve the issue
>> finally.
>>
>> I created new archive manually using source code for XML package (only R
>> code) and winzip utility. Then ran this command for installation and that
>> worked fine.
>>
>> install.packages("C:/Course/WorkingData/XML_3.98-1.1.zip", repos = NULL)
>> Installing package into ‘C:/Users/APandya/Documents/R/win-library/3.0’
>> (as ‘lib’ is unspecified)
>> package ‘XML’ successfully unpacked and MD5 sums checked
>>
>>
> That is not a valid way to install it.  Don't expect it to work.
>
> Duncan Murdoch
>
>
>>
>>
>> On Mon, Apr 21, 2014 at 9:28 AM, Duncan Murdoch 
>> > murdoch.dun...@gmail.com>> wrote:
>>
>> On 21/04/2014 9:19 AM, Milan Bouchet-Valat wrote:
>>
>> Le lundi 21 avril 2014 à 07:21 -0400, Duncan Murdoch a écrit :
>> > On 21/04/2014, 7:10 AM, Milan Bouchet-Valat wrote:
>> > > Le lundi 21 avril 2014 à 11:38 +0200, Frede Aakmann
>> Tøgersen a écrit :
>> > >> Hi
>> > >>
>> > >> Couldn't find a zip file in the archives.
>> > >>
>> > >> Why didn't 'R CMD build' (in a command shell on Windows)
>> not make a
>> > >> zip file? I did try to build from the climatol library
>> that holds the
>> > >> typical files as DESCRIPTION, LICENSE, etc. as well as
>> folders like R,
>> > >> etc.
>> > > R CMD build produces *source* packages, and .zip packages
>> are *binary*.
>> > >
>> > >> Did you see the debug information on read.fcf? For me it
>> seems like R
>> > >> has open a file handler to the DESCRIPTION file. Wouldn't
>> the error
>> > >> already be thrown there and not when read.fcf is called
>> if the .tar.gz
>> > >> format was the problem?
>> > >>
>> > >> I'll try and locate a zip
>> > > Does install.packages(choose.file(), type="source") work?
>> >
>> > That will also need "repos=NULL", or it will go out to a
>> repository to
>> > look for the package.
>> Usually install.packages() prints a warning and assumes
>> repos=NULL iwhen
>> type="source". And since I'm lazy, I've sticked to the short
>> version. ;-)
>>
>>
>> Right, if the file is a .tar.gz file, it does that.  I often
>> install directly from source directories, and there it fails.
>>
>> Duncan Murdoch
>>
>>
>>
>> > That should work if the package doesn't have compiled code.
>>  It will
>> > handle compiled code only if Frede has the appropriate tools
>> installed.
>> >
>> >
>> > I'm not sure
>> > > what utils:::menuInstallLocal() does.
>> >
>> > It is essentially
>> >
>> > install.packages(choose.file(), type="binary", repos=NULL)
>> >
>> > so it's not what Frede needs.
>> OK, so that's what I suspected.
>>
>>
>> Regards
>>
>> > Duncan
>> > >
>> > >
>> > > Regards
>> > >
>> > >
>> > >> Sendt fra Samsung mobil
>> > >>
>> > >>
>> > >>  Oprindelig meddelelse 
>> > >> Fra: Jeff Newmiller
>> > >> Dato:21/04/2014 09.44 (GMT+01:00)
>> > >> Til: Frede Aakmann Tøgersen ,Alpesh Pandya ,Rui Barradas
>> > >> Cc: r-help@r-project.org
>> <mailto:r-help@r-project.org>,Uwe Ligges ,Duncan Murdoch
>>
>> > >> Emne: RE: [R] R 3.0.3, Windows 7: Problem installing XML
>> package
>>