From hb at biostat.ucsf.edu  Thu Nov  4 18:59:25 2010
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Thu, 4 Nov 2010 10:59:25 -0700
Subject: [Rd] inst/ and hidden files/directories, especially inst/.svn/?
In-Reply-To: <4CD27CF2.90602@statistik.tu-dortmund.de>
References: <AANLkTi=Dc82yWMvXi=pYDqrsW0=Amk=vd2Rt9KFRuSpk@mail.gmail.com>
	<4CD192E8.2010700@statistik.tu-dortmund.de>
	<AANLkTikYJYdfw93OaTGMz_=he04YkHjNrvBNLo9c8VXs@mail.gmail.com>
	<4CD27CF2.90602@statistik.tu-dortmund.de>
Message-ID: <AANLkTin32WWwMH=O369LP_frEPQA6EAOKxdZQ+B2Yk4C@mail.gmail.com>

2010/11/4 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
>
>
> On 03.11.2010 19:26, Henrik Bengtsson wrote:
>>
>> On Wed, Nov 3, 2010 at 9:50 AM, Uwe Ligges
>> <ligges at statistik.tu-dortmund.de> ?wrote:
>>>
>>> Yes, ".svn" is special cased.
>>
>> Good.
>>
>> Note that it does not seem to be the case for the *.zip archive, only
>> for the *.tar.gz archive, as I showed.
>
>
> Henrik,
>
> I do not see how it can go at all into a zip archive if the recommended way
> of creating Windows binaries is used: Please create Windows binary packages
> by running ?R CMD INSTALL --build ?on the tarball.

Thanks Uwe,

all these years I've always build my binaries using

R CMD build <pkg>

where <pkg> is the directory containing the package source (a copy of it).

In Section 'Building packages' of 'Writing R Extensions' it does indeed say:

"R CMD build can also build pre-compiled version of packages for
binary distributions, but R CMD INSTALL --build is preferred (and is
considerably more flexible)."

However, the inconsistency between the two approach in dealing with
.svn/ subdirectories remains.  However however, I now see that in the
R v2.13.0 devel (2010-11-01 r53513) version of the documentation it
says:

"Note that prior to R 2.13.0, R CMD build did some cleaning in the
supplied source directory, but this was undocumented and is no longer
done."

whereas in R v2.12.0 patched (2010-11-01 r53513) it says (with grammar hiccups):

"R CMD build currently does some cleaning in the supplied source
directory, but this was will no longer happen in R"

Someone is certainly ahead of me ;)

/Henrik

>
> Best wishes,
> Uwe
>
>
>
>> /H
>>
>>>
>>> Uwe Ligges
>>>
>>>
>>> On 02.11.2010 23:53, Henrik Bengtsson wrote:
>>>>
>>>> In Section 'Package subdirectories' of 'Writing R Extensions', ?it
>>>> says about the inst/ directory that:
>>>>
>>>> "The contents of the inst subdirectory will be copied recursively to
>>>> the installation directory (except perhaps hidden files with names
>>>> starting with ?.?)."
>>>>
>>>> Indeed, on Windows with R v2.12.0 patched (2010-11-01 r53513) and R
>>>> v2.13.0 devel (2010-11-01 r53513), if you have:
>>>>
>>>> foo/inst/bar/.bar/foo.txt
>>>>
>>>> that subdirectory .bar/ will be included in the *.tar.gz and *.zip
>>>> builds. ?However, .svn/ is as in:
>>>>
>>>> foo/inst/bar/.svn/foo.txt
>>>>
>>>> is only included in the *.zip file, not the *.tar.gz file.
>>>>
>>>> Is this expected? ?The "perhaps" in the documentation indicates that.
>>>>
>>>> /Henrik
>>>>
>>>> ______________________________________________
>>>> R-devel at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>



[Rd] inst/ and hidden files/directories, especially inst/.svn/?
Henrik Bengtsson