I'm trying to update my Matrix package given the update last night. But the following error is generated. I've tried restarting R and deleting my old Matrix package. Can anyone suggest how this might be resolved?> install.packages('Matrix')trying URL 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.1/Mat rix_0.98-1.zip' Content type 'application/zip' length 891288 bytes opened URL downloaded 870Kb package 'Matrix' successfully unpacked and MD5 sums checked Error: cannot remove prior installation of package 'Matrix'> traceback()4: stop(sprintf(gettext("cannot remove prior installation of package '%s'"), curPkg), domain = NA, call. = FALSE) 3: unpackPkg(foundpkgs[okp, 2], foundpkgs[okp, 1], lib, installWithVers) 2: .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl, method = method, available = available, destdir = destdir, installWithVers = installWithVers, dependencies = dependencies) 1: install.packages("Matrix") This is on a Windows XP machine for R 2.11 [[alternative HTML version deleted]]
Doran, Harold wrote:> I'm trying to update my Matrix package given the update last night. But > the following error is generated. I've tried restarting R and deleting > my old Matrix package. Can anyone suggest how this might be resolved?Do you have write permission on the library into which you are trying to install package Matrix? In particular, have you really deleted the package from the right library? Do you have the package loaded (R should tell it, hence I do not believe this is the problem)? If this is a library used by multiple users, does any of those users have the package loaded? Uwe Ligges> >>install.packages('Matrix') > > trying URL > 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.1/Mat > rix_0.98-1.zip' > Content type 'application/zip' length 891288 bytes > opened URL > downloaded 870Kb > > package 'Matrix' successfully unpacked and MD5 sums checked > Error: cannot remove prior installation of package 'Matrix' > > > >>traceback() > > 4: stop(sprintf(gettext("cannot remove prior installation of package > '%s'"), > curPkg), domain = NA, call. = FALSE) > 3: unpackPkg(foundpkgs[okp, 2], foundpkgs[okp, 1], lib, installWithVers) > 2: .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl, > method = method, available = available, destdir = destdir, > installWithVers = installWithVers, dependencies = dependencies) > 1: install.packages("Matrix") > > > This is on a Windows XP machine for R 2.11 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Possible answers: 1) You do not have permission to remove the package from its previous location. 2) Windows mistakenly thinks that some file in the package is still open. Try deleting the directory from Windows Explorer. If 2) you may have to log out or reboot Windows before you can do so. BTW, my Windows setup updated successfully this morning, so this is indeed a local problem. On Fri, 29 Jul 2005, Doran, Harold wrote:> I'm trying to update my Matrix package given the update last night. But > the following error is generated. I've tried restarting R and deleting > my old Matrix package. Can anyone suggest how this might be resolved? > >> install.packages('Matrix') > trying URL > 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.1/Mat > rix_0.98-1.zip' > Content type 'application/zip' length 891288 bytes > opened URL > downloaded 870Kb > > package 'Matrix' successfully unpacked and MD5 sums checked > Error: cannot remove prior installation of package 'Matrix' > > >> traceback() > 4: stop(sprintf(gettext("cannot remove prior installation of package > '%s'"), > curPkg), domain = NA, call. = FALSE) > 3: unpackPkg(foundpkgs[okp, 2], foundpkgs[okp, 1], lib, installWithVers) > 2: .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl, > method = method, available = available, destdir = destdir, > installWithVers = installWithVers, dependencies = dependencies) > 1: install.packages("Matrix") > > > This is on a Windows XP machine for R 2.11 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- 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
After restarting Windows Matrix was properly updated. Not quite sure where the error was, but it is certainly local. -----Original Message----- From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Sent: Friday, July 29, 2005 11:58 AM To: Doran, Harold Cc: r-help at stat.math.ethz.ch; bates at stat.wisc.edu Subject: Re: [R] Error Downloading Matrix Package Possible answers: 1) You do not have permission to remove the package from its previous location. 2) Windows mistakenly thinks that some file in the package is still open. Try deleting the directory from Windows Explorer. If 2) you may have to log out or reboot Windows before you can do so. BTW, my Windows setup updated successfully this morning, so this is indeed a local problem. On Fri, 29 Jul 2005, Doran, Harold wrote:> I'm trying to update my Matrix package given the update last night.But> the following error is generated. I've tried restarting R and deleting > my old Matrix package. Can anyone suggest how this might be resolved? > >> install.packages('Matrix') > trying URL >'http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.1/Mat> rix_0.98-1.zip' > Content type 'application/zip' length 891288 bytes > opened URL > downloaded 870Kb > > package 'Matrix' successfully unpacked and MD5 sums checked > Error: cannot remove prior installation of package 'Matrix' > > >> traceback() > 4: stop(sprintf(gettext("cannot remove prior installation of package > '%s'"), > curPkg), domain = NA, call. = FALSE) > 3: unpackPkg(foundpkgs[okp, 2], foundpkgs[okp, 1], lib,installWithVers)> 2: .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl, > method = method, available = available, destdir = destdir, > installWithVers = installWithVers, dependencies = dependencies) > 1: install.packages("Matrix") > > > This is on a Windows XP machine for R 2.11 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html>-- 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
Maybe Matching Threads
- Problems installing packages using the inbuilt facility: "Error i n gzfile(file, "r") : unable to open connection"
- How to reinstall rpart?
- lattice (PR#7093)
- Problem in Installing Package from CRAN...
- local source packages install from within R session - cross-platform