Skip to content

Resolving ‘Unable to move temporary installation’ in R

G29th November 2017

CNo Comments

TR

A simple solution to overcoming the “Unable to move temporary installation” fault when installing packages in R.

R is notorious for its difficult installations and upgrades (although I have tried to make upgrading easier). Transferring packages between installations can be a challenge, but another problem can arise when the installations of libraries are too fast. If this happens, an R user will start noticing an error: “Unable to move temporary installation”.

To overcome this problem, type the following command into R:

trace(utils:::unpackPkgZip, edit=TRUE)

Go to Line 140 and change Sys.sleep(0.5) to Sys.sleep(2.5).

   

Comments:

No comments have yet been submitted. Be the first!

Have your say:

The following HTML is permitted:
<a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <q cite=""> <strike> <strong>

Comments will be published subject to the Editorial Policy.