Re: [Rd] Building Packages on Windows using .Rbuildignore

From: Gabor Grothendieck <>
Date: Thu 18 Nov 2004 - 11:38:47 EST

Duncan Murdoch <murdoch <at>> writes:

> On Wed, 17 Nov 2004 20:44:48 +0000 (UTC), Gabor Grothendieck
> <ggrothendieck <at>> wrote :
> >If one does not use .Rbuildignore then with a pure R package
> >one can run off the original source files, in this case
> >in /wherever/mypkg, like this:
> >...without .Rbuildignore ...
> >R CMD install /wherever/mypkg
> >R CMD check /wherever/mypkg
> >R CMD build /wherever/mypkg
> >R CMD build /wherever/mypkg --binary
> >
> >but if one DOES use .Rbuildignore then one must first build the
> >package to remove the .Rbuildignore cited files and then run off
> >the built files which were created by unpacking the tar.gz file.
> ... or what happens? I still don't know exactly what you are claiming
> goes wrong.

QUESTION I am not claiming anything is wrong. I was simply describing what processing is needed to build a package that only uses R, noting that such processing is different if one uses .Rbuildignore. My question was to ask:

EXAMPLE For example, in John Fox provided a batch file that automated package creation in the case that there is only R code and one does not use .Rbuildignore. I do use .Rbuildignore and need to do the analogous. Most of my past two posts described the manual commands that must be done in each of these two cases to make clear what the process that I want to streamline is and how it differs in these two cases.

DIFFERENCE BETWEEN USING .RBUILDIGNORE AND NOT The reason that the processing is different according to whether one uses .Rbuildignore or not is that
  R CMD build
takes the .Rbuildignore file into account but   R CMD install

  R CMD check
  R CMD build --binary
do not take .Rbuildignore into account.

> It might be that the behaviour should be changed, or maybe there's an
> existing workaround, but I'd like to see a clear statement of the
> problem first.

Certainly its desirable to streamline this whole situation with a makefile, script or hook or perhaps one could modify the individual commands: R CMD install, R CMD check and R CMD build --binary to take .Rbuildignore into account, possibly via a switch/flag. However, all I was asking about is what is already there.

Thanks. mailing list Received on Thu Nov 18 11:44:42 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:01:29 EST