From edd at debian.org  Wed Jul 10 07:15:13 2013
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 10 Jul 2013 00:15:13 -0500
Subject: [Rd] R CMD INSTALL and file permission settings
In-Reply-To: <CAF42j233gQkGRsk3mLaLajimfFb1GUM1FV=geXtPdD6X4Y0a8A@mail.gmail.com>
References: <20915.23136.75704.347469@max.nulle.part>
	<20917.40985.705751.95999@stat.math.ethz.ch>
	<20923.30546.509634.752403@stat.math.ethz.ch>
	<1A628E3D-CC34-4C38-B23B-03169D3C7AD0@r-project.org>
	<20923.32408.400045.470669@max.nulle.part>
	<046C1EB4-F22D-457F-BB2C-27D666E3418F@r-project.org>
	<20923.57124.150011.263475@max.nulle.part>
	<82EC6E1A-75F7-4172-968B-CA55AB102171@r-project.org>
	<20924.22356.973252.449984@max.nulle.part>
	<20924.35840.998596.681242@max.nulle.part>
	<20924.46479.760166.350303@stat.math.ethz.ch>
	<21555_1371339551_51BCFB1E_21555_1664_1_E307D292-451C-4233-A660-87A2B88B52A6@r-project.org>
	<CAF42j233gQkGRsk3mLaLajimfFb1GUM1FV=geXtPdD6X4Y0a8A@mail.gmail.com>
Message-ID: <20956.60897.544948.583992@max.nulle.part>


Hi Dan,

On 9 July 2013 at 19:52, Dan Tenenbaum wrote:
| Picking up a somewhat old thread...what is the final status of this?

In r-patched and r-devel, check the NEWS file.

| It doesn't look like an option was added to control the permissions of
| installed package files.
| It also seems that the --group-writable option to R CMD INSTALL is not
| present in R-3.0.1.
| 
| So are we back to where we started?
| 
| FWIW, I'd prefer a solution that respects the umask and is honored in
| install.packages(), update.packages(), etc. In my use case users will

We have something which is (in the eyes of all who played along here) better
and simpler.  Instead of passing an explicit option down (which has to cope
with the different entry paths for this), the install function now checks for
group-write mode of the target target directory. If present, the installation
will use group-write too on file and its new directories.  Easier, and quite
elegant.  Have a go and see if it fits your bill -- no umask fiddling, no
teaching all users to change habits, no inotify.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



[Rd] R CMD INSTALL and file permission settings
Dirk Eddelbuettel