Unable to move temporary installation R issue
1
0
Entering edit mode
@wkmustahs21-15862
Last seen 5.9 years ago

I am trying to resolve this issue, so far I have tried this script:

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

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

But I think R is not accepting this change.... I get this message: Tracing function "unpackPkgZip" in package "utils (not-exported)" 1 "unpackPkgZip"

Can someone please give me a step-step on how to fix this?

software error R • 1.2k views
ADD COMMENT
0
Entering edit mode

Can you provide more information about what you are trying to do, e.g., R function that you are calling and that is causing problems?

ADD REPLY
0
Entering edit mode

Hi Martin

I am trying to install the swirl package and during the installation of the package I get messages like this:

Warning: unable to move temporary installation ‘C:\Users\xxxxx\Documents\R\win-library\3.1\file298c210c3209\spatial’ to ‘C:\Users\xxxxx\Documents\R\win-library\3.1\spatial’
package ‘survival’ successfully unpacked and MD5 sums checked

so I tried the line in the script mentioned above but then I make that change and save it.....I get the "not exported" message.

 

ADD REPLY
0
Entering edit mode
@martin-morgan-1513
Last seen 5 days ago
United States

This might be because there is not enough space in the target location, or that another process (e.g., R session, but also file manager or any program) is accessing a file in the target location. Use your file manager to make sure that C:\Users\xxxxx\Documents\R\win-library\3.1\spatial does not exist. Make sure that your R session itself is not using the spatial package (does not appear in the output of sessionInfo()).

R-3.1 is very old.

ADD COMMENT
0
Entering edit mode

Hi Martin

Can you please clarify something for me, when you say, "Use your file manager to make sure that C:\Users\xxxxx\Documents\R\win-library\3.1\spatial does not exist." 

Are you indicating that if I do find this file should I delete it?

ADD REPLY
0
Entering edit mode

Yes; note that this will mean that the (old) version of spatial is no longer available.

ADD REPLY
0
Entering edit mode

Thank you, I will give this a try. Also can you explain more about this:  "...R session itself is not using the spatial package" these packages come up on their own when installing the swirl package, so how do I modify this?

ADD REPLY
1
Entering edit mode

It seems like you try to install swirl, and in the process R realizes that spatial is out-of-date. So R tries to install spatial. Instead, try to install the spatial package alone. If that works, then install swirl.

ADD REPLY

Login before adding your answer.

Traffic: 997 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6