Warning in install.packages: unable to move temporary installation

后端 未结 11 2461
孤城傲影
孤城傲影 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:13

    I also found one solution if above solutions wouldn't work in corporate antivirus. First change the path of package installation use this command and execute in R:

    install.packages('caTools','D:\\ML\\Tools\\Installed\\RPackages')
    

    Now it will show a console's error that unable to move and the package is placed on to some location. just remember this location, we need this zip file for further operations.

    Now use this command:

    install.packages("D:/ML/Tools/Installed/RPackages/caTools_1.17.1.zip", repos = NULL, type = "win.binary", lib="D:/ML/Tools/Installed/R-3.4.3/library") 
    

提交回复
热议问题