Tal Galili
2011-Apr-18 06:57 UTC
[R] Windows 7, update.packages problem: "unable to move temporary installation"?
Hello all, I am using R 2.13.0 with windows 7, after giving my user full privileges to the R folder (as described here<http://www.r-statistics.com/2011/04/how-to-upgrade-r-on-windows-7/> ). This allows me to install new packages just fine. However, when using update.packages(), to update existing packages, I keep getting the following error (for example, when updating the MASS package): package 'MASS' successfully unpacked and MD5 sums checked Warning: unable to move temporary installation 'C:\Program Files\R\R-2.13.0\library\file6cae3bcf\MASS' to 'C:\Program Files\R\R-2.13.0\library\MASS' Any suggestions on how to fix this? Thanks, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- [[alternative HTML version deleted]]
Joshua Wiley
2011-Apr-18 07:05 UTC
[R] Windows 7, update.packages problem: "unable to move temporary installation"?
Hi Tal, Three thoughts, not sure if any of them would pan out in your case. 1) Run R as an administrator 2) Shift your library location out of Program Files 3) just use install.packages("MASS"), the only downside is you'd have to know the packages you wanted to update rather than just update.packages() which will update everything you need at once for you. Best regards, Josh On Sun, Apr 17, 2011 at 11:57 PM, Tal Galili <tal.galili at gmail.com> wrote:> Hello all, > > I am using R 2.13.0 with windows 7, after giving my user full privileges to > the R folder (as described > here<http://www.r-statistics.com/2011/04/how-to-upgrade-r-on-windows-7/> > ). > This allows me to install new packages just fine. > > However, when using update.packages(), to update existing packages, I keep > getting the following error (for example, when updating the MASS package): > > package 'MASS' successfully unpacked and MD5 sums checked > Warning: unable to move temporary installation 'C:\Program > Files\R\R-2.13.0\library\file6cae3bcf\MASS' to 'C:\Program > Files\R\R-2.13.0\library\MASS' > > Any suggestions on how to fix this? > > > Thanks, > Tal > > > ----------------Contact > Details:------------------------------------------------------- > Contact me: Tal.Galili at gmail.com | ?972-52-7275845 > Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | > www.r-statistics.com (English) > ---------------------------------------------------------------------------------------------- > > ? ? ? ?[[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. >-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
Tal Galili
2011-Apr-19 09:42 UTC
[R] Windows 7, update.packages problem: "unable to move temporary installation"?
Just to update everyone, I found out the source of the problem: antivirus. The "real time file system protection" was blocking R from copying the files between folders once they were downloaded. Upon adding the R directory to the exception list, the problem went away :) (I updated my post with the above information: http://www.r-statistics.com/2011/04/how-to-upgrade-r-on-windows-7/) I hope it will help someone in the future, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Mon, Apr 18, 2011 at 9:57 AM, Tal Galili <tal.galili@gmail.com> wrote:> Hello all, > > I am using R 2.13.0 with windows 7, after giving my user full privileges to > the R folder (as described here<http://www.r-statistics.com/2011/04/how-to-upgrade-r-on-windows-7/> > ). > This allows me to install new packages just fine. > > However, when using update.packages(), to update existing packages, I keep > getting the following error (for example, when updating the MASS package): > > package 'MASS' successfully unpacked and MD5 sums checked > Warning: unable to move temporary installation 'C:\Program > Files\R\R-2.13.0\library\file6cae3bcf\MASS' to 'C:\Program > Files\R\R-2.13.0\library\MASS' > > Any suggestions on how to fix this? > > > Thanks, > Tal > > > ----------------Contact > Details:------------------------------------------------------- > Contact me: Tal.Galili@gmail.com | 972-52-7275845 > Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | > www.r-statistics.com (English) > > ---------------------------------------------------------------------------------------------- > > >[[alternative HTML version deleted]]