Why R's check_permissions uses (mode & "400") < as.octmode("400")
You probably don't care about Unix File Mode and octmode bitwise comparison
Colin Fay digs into a cryptic line in R's source code that checks Unix file permissions. He explains octal notation, why read/write/execute map to 4/2/1, and how bitwise AND isolates the owner-read bit. The trick catches files with insufficient permissions even when special bits like the sticky bit inflate the numeric mode, something a simple comparison would miss.
So basically `(mode & "400")` is a way to do some triage, so that every perm below 400 will be converted to 0, and the others to 400.