Bug 16132

Summary: R CMD check flags symlinks pointing to non-existent files as permission problems on NA
Product: R Reporter: Hin-Tak Leung <htl10>
Component: MiscAssignee: R-core <R-core>
Status: NEW ---    
Severity: enhancement CC: maechler
Priority: P5    
Version: R-devel (trunk)   
Hardware: Other   
OS: Linux   

Description Hin-Tak Leung 2015-01-05 01:39:09 UTC
I have some sym-links between the old R 2.x and new R 3.x vignette locations to keep the same code base for multiple R versions. When accidentally moved the files for which the symlinks point to, The current dev HEAD (trunk@67316) "R CMD check" shows:

* checking for sufficient/correct file permissions ... ERROR
Found the following files with insufficient permissions:
Permissions should be at least 700 for directories and 400 for files.
Please fix permissions and try again.

That's certainly misleading and nowhere near what the actual problem is, particularly with the "NA" part about files with insufficient permissions.
Comment 1 Martin Maechler 2016-08-12 12:56:59 UTC
This does look like a bug, albeit rare.  Even though your description is quite precise, there are still many different ways for such symlinks between  vignettes/  and inst/doc/  (I assume).
- which direction
- which files are symlinked
- are the symlinks relative or absolute

Could you create a small fake package and attach its tarball to this bug report,
(or close the bug report, in case this problem has been fixed; we did do something about symlinks in the not so distant path ..)

Thank you in advance!