[Rd] 'R CMD build' and file permissions

From: Herve Pages <hpages_at_fhcrc.org>
Date: Fri, 05 Oct 2007 13:58:42 -0700


When building a source package on Linux with 'R CMD build', the files in the resulting tarball don't have the original permissions.
The problem is that the packages I want to build include an SQLite data base (an .sqlite file) and, before I run 'R CMD build', I've made this file read-only (chmod 444) because I want this DB to be read-only. Then if I install by running 'R CMD INSTALL' directly on the source directory, everything works as expected (the permissions of the installed .sqlite file are conserved). But if I run 'R CMD build' in order to produce the tarballs (I need to distribute those packages), then, when the user will install them, the SQLite DBs will not be read-only anymore.

Is there a way to prevent 'R CMD build' from changing the permissions of the source files?
Thanks in advance!


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 05 Oct 2007 - 21:01:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.