For some reason during the summer holidays I was browsing the R source code and stumbled upon this piece of code in check_permissions.

Phase A. Directories at least 700, files at least 400.

if (length(allfiles)) {
mode

Continue reading: You probably don’t care about Unix File Mode & octmode bitwise comparison but let’s talk about it …