From ripley at stats.ox.ac.uk  Tue Sep 25 09:22:49 2012
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 25 Sep 2012 08:22:49 +0100
Subject: [Rd] error on uneven recycling?
In-Reply-To: <5061594B.9050903@stats.ox.ac.uk>
References: <CAJ55+dJ8zbqK-7RvTO-8K-y=e1BMKG8aHm-HML3F+FQm1EfutA@mail.gmail.com>
	<5061594B.9050903@stats.ox.ac.uk>
Message-ID: <50615BC9.4080306@stats.ox.ac.uk>

On 25/09/2012 08:12, Prof Brian Ripley wrote:
> On 25/09/2012 03:45, Thomas Lumley wrote:
>> Is there some reason why
>>
>>> (1:2)+(1:3)
>> [1] 2 4 4
>> Warning message:
>> In (1:2) + (1:3) :
>>    longer object length is not a multiple of shorter object length
>>
>> can't be made into an error?  I realise it was there in S-PLUS, but
>> since it produces a warning there can't be many examples on CRAN or
>> Bioconductor using it, and I can't think of any situation where it
>> would be used deliberately.
>
> It produces a warning, not an R CMD check warning.  There are lots of
> instances on CRAN, for example when running the examples for
>
> CollocInfer DiceOptim FitAR LaplacesDemon MethComp OUwie ROptEst
> RandVar RiDMC SweaveListingUtils TeachingSampling adlift
> arulesViz caret cyclones depth disp2D gstat hyperSpec igraph
> igraph0 iid influence irtoys isotone ldDesign libamtrack lqmm
> mixtools phylobase polynom replicationDemos reporttools robustX
> rsem sfsmisc spam spatstat survival tcltk2 tsDyn
>
> let alone tests and vignettes.

I caught some some similar ones in that search:

CollocInfer DiceOptim RandVar TeachingSampling hyperSpec igraph igraph0 
influence lqmm mixtool phylobase polynom robustX sfsmisc spam survival 
tcltk2 tsDyn

are exactly that warning.  I think for example the one in 'survival' is 
an error.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] error on uneven recycling?
Prof Brian Ripley