Skip to content
Prev 46047 / 63424 Next

R CMD INSTALL and file permission settings

On Jun 14, 2013, at 11:27 PM, Dirk Eddelbuettel wrote:

            
Nope this is wrong. If you have write rights on a directory, you can delete files even if you don't have write rights on them. That's why rf -rf + re-install works but update doesn't.
Because update.packages() doesn't restore the group-writable bit. Which leads us to my point that this is not what you really want.
I wasn't disputing the fact that it's great to have group-writable bit under control, but adding the flag to INSTALL doesn't solve the problem - and as you saw the result is a bit misleading in the context that it was discussed and thus may cause more confusion. I am arguing that the solution would be to (at least as default) take the directory writable bit because that is really what decides things anyway. You had a good point of also combining it with umask.

Cheers,
Simon