Bug 16132 - R CMD check flags symlinks pointing to non-existent files as permission problems on NA
Summary: R CMD check flags symlinks pointing to non-existent files as permission probl...
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Misc (show other bugs)
Version: R-devel (trunk)
Hardware: Other Linux
: P5 enhancement
Assignee: R-core
Depends on:
Reported: 2015-01-05 01:39 UTC by Hin-Tak Leung
Modified: 2016-08-12 12:56 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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!