Make a file writable in order to add new packages
Changing the security setting on the R folder to "full control" fixed this for me. See the third posting down at this link for step by step instructions: Unable to update R packages in default library on Windows 7
Just run RStudio as an administrator. Right-Click on it and choose run as Administrator