Warning in install.packages: unable to move temporary installation

后端 未结 11 2472
孤城傲影
孤城傲影 2020-12-05 05:00

I\'ve found a number of questions related to this warning when installing or updating packages in R/RStudio, but none seem to completely match my situation:

  • Co
11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 05:26

    I fixed my instance of this problem (Windows 7) by removing the 'Read-Only' attribute of the folder R was trying to move stuff to.

    I went to the Run command from the Start menu in Windows (7) and typed attrib -r +s drive:\\

    Note that just right clicking the folder and trying to change properties didn't take, as per this link from Microsoft: https://support.microsoft.com/en-us/help/326549/you-cannot-view-or-change-the-read-only-or-the-system-attributes-of-fo

    Hope that helps someone.

    I hope this change doesn't screw me in other ways.

提交回复
热议问题