Unable to update R packages in default library on Windows 7

前端 未结 11 1671
别那么骄傲
别那么骄傲 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:20

    Without more information, my first guess is that you have insufficient permissions to write to the R site library folder. Usually, R would prompt for creation of a user lib folder to install to, but this can be unreliable under Windows Vista/Windows 7.

    Try:

    dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)
    

    In the R console. Libraries should now install to /Users/"you"/R/win-library/x.y, for which you have the appropriate permissions.

提交回复
热议问题