Unable to update R packages in default library on Windows 7 Unable to update R packages in default library on Windows 7 r r

Unable to update R packages in default library on Windows 7


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 :-)


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


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