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,                  rip...@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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to