From ggrothendieck at gmail.com  Thu Sep 28 16:42:39 2006
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Thu, 28 Sep 2006 10:42:39 -0400
Subject: [Rd] R CMD build when the package name is different from the
	directory name
In-Reply-To: <200609281612.22919.ahenningsen@agric-econ.uni-kiel.de>
References: <200609281336.49794.ahenningsen@agric-econ.uni-kiel.de>
	<971536df0609280630n20755e70s3ad0614b7eaa3f2f@mail.gmail.com>
	<200609281612.22919.ahenningsen@agric-econ.uni-kiel.de>
Message-ID: <971536df0609280742p15701c6er16e95dd45ae0593f@mail.gmail.com>

I normally only keep one version locally since everything else
can be retrieved, if needed, from the repository.  If you do want
to keep multiple versions locally then, of course, there is still
a potential problem.

On 9/28/06, Arne Henningsen <ahenningsen at agric-econ.uni-kiel.de> wrote:
> Dear Gabor,
>
> Thank you for your message.
>
> On Thursday 28 September 2006 15:30, Gabor Grothendieck wrote:
> > Another possibility is to store your code in svn or other version
> > control system.
>
> Unfortunately, I can't see why this should make a difference for
> "R CMD build". Do I miss something?
> The entire package is in an SVN repository. I have working copies of "trunk"
> and of "branches". Therefore, the working copy of, say, branch "0.8"
> is "branches/0.8/" (see below).
>
> >
> > On 9/28/06, Arne Henningsen <ahenningsen at agric-econ.uni-kiel.de> wrote:
> > > Hi,
> > >
> > > I was really happy when I saw that in R version 2.3.0 "R CMD check" works
> > > for packages whose package name is different from the directory name in
> > > which it is located (see http://cran.r-project.org/src/base/NEWS).
> > > Now, I can have branches of my packages in directories like
> > > "[...]/branches/<version number>/", while I had to use
> > > "[...]/branches/<version number>/<package name>" before.
> > > "R CMD check <version number>" runs as expected but when I build the
> > > package with "R CMD build <version number>", the file name of the source
> > > package is "<version number>_<version number>-<patch level>.tar.gz" (and
> > > not "<package name>_<version number>-<patch level>.tar.gz"). Furthermore
> > > the base directory inside the .tar.gz archive is "<version number>" (and
> > > not "<package name>").
> > >
> > > Is there a possibility to tell "R CMD build" to use the correct package
> > > name ("R CMD check" uses the correct package name.) Can you change the
> > > (default) behaviour of "R CMD build" in future releases?
> > >
> > > Do I have to change the file name and/or the name of the base directory
> > > before uploading the package to CRAN?
> > >
> > > I use R version 2.3.1 (2006-06-01) on i686-pc-linux-gnu.
> > > The same happens with R version 2.4.0 RC.
> > >
> > > Thanks,
> > > Arne
> > >
>
> --
> Arne Henningsen
> Department of Agricultural Economics
> University of Kiel
> Olshausenstr. 40
> D-24098 Kiel (Germany)
> Tel: +49-431-880 4445
> Fax: +49-431-880 1397
> ahenningsen at agric-econ.uni-kiel.de
> http://www.uni-kiel.de/agrarpol/ahenningsen/
>




[Rd] R CMD build when the package name is different from the directory name
Gabor Grothendieck