It looks like you don't have write permissions to the directory on your system that these packages are stored in.
To find out what directories store packages on your system, fire up R and look at the output of lib.paths()
. One brute force method is to ensure that you have write permissions to there, and then you can update these packages as you like.
You can find out where a specific package lives by calling find.package("dplyr")
(for example, since it needs to be updated, apparently).
If you don't have admin rights to your system, there are other things you can do, but depending on your comfort level with system administration in general, it's hard for me to enumerate all the things you can do before getting some more information from you.
So: I'll start by assuming you are on a personal machine, and you can tweak permissions to the directories enumerated in .libPaths()
. Make sure you can write to there, and try to update again.
Even if you can't update the package, you still should be able to perform "simple functions" after moving on from the update prompt. So if you want more help with that, you will have to explain what is happening in a bit more detail (ie. what are you trying and what output do you get).
Also, if you just copy/paste things from R without trying to correctly format, you get a blob of text like you show. But the real output looks like this:
Which sort of tells a different tale, no?