That message generally means that that either you don't have write privileges to the file or that you have the file open in another application and thus cannot write to it.
On a separate note, R 3.2.3 is very old. You should consider upgrading (3.5.3 has just been released).