I think this is a FAQ, hence not appropriate on ANY mailing list:

Please read a) The R for Windows FAQs, Section (currently 3.8) "update.packages() fails" and b) note that VR is a package bundle, hence nothing dubious if library(VR) fails. Also, if package MASS has been loaded, you cannot update the VR bundle.


Uwe Ligges



Keith Wong wrote:

In reference to the thread http://tolstoy.newcastle.edu.au/R/devel/04/10/0859.html

I have the same problem updating packages with newly-installed version of released version of R 2.0.1. Previous posts refer to a bug in windows. I wonder if there is a work-around? This probably should go to R-help but it follows on from the post in R-devel. Apologies in advance.

OS: Windows XP Professional, with current patches. I have administrator rights.
R version 2.0.1 released version (newly re-installed).


Problem:
update.packages() downloads the binaries, but installation stops with the same error message, and the package to be upgraded disappears entirely:


package 'boot' successfully unpacked and MD5 sums checked
bundle 'VR' successfully unpacked and MD5 sums checked
package 'cluster' successfully unpacked and MD5 sums checked
package 'foreign' successfully unpacked and MD5 sums checked
package 'KernSmooth' successfully unpacked and MD5 sums checked
package 'lattice' successfully unpacked and MD5 sums checked
package 'nlme' successfully unpacked and MD5 sums checked
Error: Can not remove prior installation of package 'nlme'
In addition: Warning message:
unable to move temp installation 'C:/PROGRA~1/R/rw2001/library\file30867/foreign' to 'C:/PROGRA~1/R/rw2001/library/foreign'
> library(nlme)
Error in library(nlme) : There is no package called 'nlme'



Keith


> update.packages() trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 26875 bytes opened URL downloaded 26Kb

boot :
Version 1.2-20 in C:/PROGRA~1/R/rw2001/library
Version 1.2-22 on CRAN
Update (y/N)? y
VR :
Version 7.2-10 in C:/PROGRA~1/R/rw2001/library
Version 7.2-12 on CRAN
Update (y/N)? y
cluster :
Version 1.9.6 in C:/PROGRA~1/R/rw2001/library
Version 1.9.7 on CRAN
Update (y/N)? y
foreign :
Version 0.8-0 in C:/PROGRA~1/R/rw2001/library
Version 0.8-5 on CRAN
Update (y/N)? y
KernSmooth :
Version 2.22-14 in C:/PROGRA~1/R/rw2001/library
Version 2.22-15 on CRAN
Update (y/N)? y
lattice :
Version 0.10-14 in C:/PROGRA~1/R/rw2001/library
Version 0.10-16 on CRAN
Update (y/N)? y
nlme :
Version 3.1-53 in C:/PROGRA~1/R/rw2001/library
Version 3.1-56 on CRAN
Update (y/N)? y
rpart :
Version 3.1-20 in C:/PROGRA~1/R/rw2001/library
Version 3.1-22 on CRAN
Update (y/N)? y
survival :
Version 2.15 in C:/PROGRA~1/R/rw2001/library
Version 2.16 on CRAN
Update (y/N)? y
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/boot_1.2-22.zip'
Content type `application/zip' length 767540 bytes
opened URL
downloaded 749Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/VR_7.2-12.zip'
Content type `application/zip' length 1551825 bytes
opened URL
downloaded 1515Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/cluster_1.9.7.zip'
Content type `application/zip' length 472995 bytes
opened URL
downloaded 461Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/foreign_0.8-5.zip'
Content type `application/zip' length 172108 bytes
opened URL
downloaded 168Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/KernSmooth_2.22-15.zip'
Content type `application/zip' length 95039 bytes
opened URL
downloaded 92Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/lattice_0.10-16.zip'
Content type `application/zip' length 650372 bytes
opened URL
downloaded 635Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/nlme_3.1-56.zip'
Content type `application/zip' length 2144937 bytes
opened URL
downloaded 2094Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/rpart_3.1-22.zip'
Content type `application/zip' length 233548 bytes
opened URL
downloaded 228Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/survival_2.16.zip'
Content type `application/zip' length 954786 bytes
opened URL
downloaded 932Kb


package 'boot' successfully unpacked and MD5 sums checked
bundle 'VR' successfully unpacked and MD5 sums checked
package 'cluster' successfully unpacked and MD5 sums checked
package 'foreign' successfully unpacked and MD5 sums checked
package 'KernSmooth' successfully unpacked and MD5 sums checked
package 'lattice' successfully unpacked and MD5 sums checked
package 'nlme' successfully unpacked and MD5 sums checked
Error: Can not remove prior installation of package 'nlme'
In addition: Warning message:
unable to move temp installation 'C:/PROGRA~1/R/rw2001/library\file30867/foreign' to 'C:/PROGRA~1/R/rw2001/library/foreign'
> library(nlme)
Error in library(nlme) : There is no package called 'nlme'
> library(lattice)
> library(boot)


Attaching package 'boot':


The following object(s) are masked from package:lattice :

         melanoma

 > library(rpart)
 > library(survival)
Loading required package: splines

Attaching package 'survival':


The following object(s) are masked from package:boot :

         aml

> library(VR)
Error in library(VR) : There is no package called 'VR'
> library(cluster)
> library(foreign)
Error in library(foreign) : There is no package called 'foreign'
> library(KernSmooth)
KernSmooth 2.22 installed
Copyright M. P. Wand 1997
> library(lattice)
> local({a <- CRAN.packages()
+ install.packages(select.list(a[,1],,TRUE), .libPaths()[1], available=a, dependencies=TRUE)})
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 26875 bytes
opened URL
downloaded 26Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/nlme_3.1-56.zip'
Content type `application/zip' length 2144937 bytes
opened URL
downloaded 2094Kb


package 'nlme' successfully unpacked and MD5 sums checked

Delete downloaded files (y/N)?
The packages are in C:\DOCUME~1\KeithW\LOCALS~1\Temp\Rtmp6848\Rinstdir19641
updating HTML package descriptions
> local({a <- CRAN.packages()
+ install.packages(select.list(a[,1],,TRUE), .libPaths()[1], available=a, dependencies=TRUE)})
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 26875 bytes
opened URL
downloaded 26Kb


trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/VR_7.2-12.zip'
Content type `application/zip' length 1551825 bytes
opened URL
downloaded 1515Kb


bundle 'VR' successfully unpacked and MD5 sums checked
Error: Can not remove prior installation of package 'MASS'
 >

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to