From hpages at fhcrc.org  Fri Oct  5 22:58:42 2007
From: hpages at fhcrc.org (Herve Pages)
Date: Fri, 05 Oct 2007 13:58:42 -0700
Subject: [Rd] 'R CMD build' and file permissions
Message-ID: <4706A582.4060406@fhcrc.org>

Hi,

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!

Cheers,
H



[Rd] 'R CMD build' and file permissions
Herve Pages