I want to create a file in a directory owned by the staff group which I am a member of. Why can I not do this?
bmccann@bmccann-htpc:~$ ls -l /usr/local/lib/R/ t
Check if your parent directory have permission before you add content to that file
sudo chmod -R 777 /yourDir/file.log