Re: [Rd] error on uneven recycling?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue, 25 Sep 2012 08:12:11 +0100

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.

-- 
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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 25 Sep 2012 - 07:15:10 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Sep 2012 - 07:50:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive