From Torsten.Hothorn at rzmail.uni-erlangen.de  Wed Jul  6 20:10:28 2005
From: Torsten.Hothorn at rzmail.uni-erlangen.de (Torsten Hothorn)
Date: Wed, 6 Jul 2005 20:10:28 +0200 (CEST)
Subject: [Rd] .Rbuildignore {was: ... upgrading an R (WINDOWS)
	installation..}
In-Reply-To: <971536df05070607087c72249f@mail.gmail.com>
References: <971536df0506300510f6d6ac2@mail.gmail.com>
	<da15bn$1r5$1@sea.gmane.org>
	<971536df05063012166bfa590b@mail.gmail.com>
	<da1jlv$et5$1@sea.gmane.org>
	<971536df050630152014c8f70@mail.gmail.com>
	<971536df05070605244d022d9e@mail.gmail.com>
	<17099.55467.732587.886792@stat.math.ethz.ch>
	<971536df05070607087c72249f@mail.gmail.com>
Message-ID: <Pine.LNX.4.51.0507062005170.27957@artemis.imbe.med.uni-erlangen.de>


> >
> > No!  {We have been here before, and I had explained before that}
> > this is really undesired:  ".Rbuildignore" should contain what is
> > ignored by build, but not by "check".
> > It does make sense to have extra code and / or checks for 'R CMD check'
> > that I as package developer want to run, but that are
> >  -- too time consuming
> >  -- too platform specific
> >  -- ......
> > to be run during the daily checks on CRAN (e.g.) /
> > to be run by others at all.
> >
> > {And BTW, AFAIK,  'Rcmd' is now `somewhat deprecated' in favor
> >  of "R CMD" since the latter is portable }
> >
> > --
> > Martin
> >
>
>
> I think its too heavy handed an approach. This should be up to the package
> developer via a switch.

I usually have something like

.onLoad <- function(lib, pkg) {
    ...
    GCtorture <<- TRUE
    ...
    return(TRUE)
}

in packages and simply

gctorture(on = GCtorture)

in all regression tests which allows me to switch between time consuming
tests and ordinary regression tests easily.

Torsten

> I like to put partially written code and other things
> not intended for distribution in .Rbuildignore and don't want them checked or
> installed until I move them out of .Rbuildignore.  That makes it
> possible to keep
> everything together.  Without this one must 1. keep them elsewhere
> (which I am considering as an alternate approach to what I do now although
> it would be a shame) or else 2. write batch files (which I have
> written for XP) to do
> a prebuild every time one does a check or install.
>
> One annoying aspect of R CMD is the requirement for capitalization.  Maybe
> that's ok on UNIX but on Windows one is used to using upper and lower
> case interchangeably.  Its also annoying to have to write two words instead of
> one for a frequently issued command.   At any rate I always call it through
> my Rcmd.bat batch file so its not really an issue for me.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



[Rd] .Rbuildignore {was: ... upgrading an R (WINDOWS) installation..}
Torsten Hothorn