Unable to update R packages in default library on Windows 7

前端 未结 11 1498
别那么骄傲
别那么骄傲 2020-11-27 04:41

I\'m trying to update packages on RGui (64-bit) using update.packages but I\'m getting the following message:

Warning in install.packages(update         


        
相关标签:
11条回答
  • 2020-11-27 05:03

    Try choosing a cranmirror location closer to you with this command first

    chooseCRANmirror()
    

    And then try installing the package. This command worked for me when I was getting warnings on installing "devtools".

    0 讨论(0)
  • 2020-11-27 05:04

    Usually you need administrator rights to change things in program files. Try running RGui as administrator.

    0 讨论(0)
  • 2020-11-27 05:06

    try

    install.packages('package_name', lib='folder')
    

    you can specify a folder for installation of the libraries, for which you have writing permission.

    Hope this helps

    0 讨论(0)
  • 2020-11-27 05:08

    I have BitDefender 2018 and had to disable "safe files" and "firewall".

    0 讨论(0)
  • 2020-11-27 05:10

    I also had this kind of problem in Windows 10, Then I disable "Safe Files" in Bitdefender 2018. It works for me

    0 讨论(0)
  • 2020-11-27 05:15

    It happens the same to me, and after coding hours and hours in "R" of Gui Project, i got bored because it is much easier to read a code when the interface uses colours for a certain type of words (commands). Well, i decided to install RStudio, but soon i was faced with package installation problems. It seems that happens in Windows 7. The way that I used to solve this problem with RSutido was:

    1. C:\Program Files\R - and this is the folder that contains "R" and not RStudio folder!
    2. Right click for properties.
    3. Security.
    4. In "Group or user names" select your name
    5. click "Edit"
    6. select "Full control"
    7. Apply and click OK

    After this steps you should be ok to install all the packages :-)

    0 讨论(0)
提交回复
热议问题