Re: [Rd] multiple names to assign

2008-07-20 Thread Prof Brian Ripley
Warning does seem sensible (and there is already a test for length > 0), so I've added one. Generally R has followed the Unix philosophy of not chatting and trying to make sense of the user's inputs (although it has multiple authors, and some advocate more of what others see as nannying). We

Re: [Rd] multiple names to assign

2008-07-13 Thread Kasper Daniel Hansen
Biobase has multiassign. Kasper On Jul 13, 2008, at 2:39 AM, Patrick Burns wrote: 'assign' does not give a warning if 'x' has length greater than 1 -- it just uses the first element: assign(c('a1', 'a2'), 1:2) One way of thinking about this is that people using 'assign' get what they deserve

[Rd] multiple names to assign

2008-07-13 Thread Patrick Burns
'assign' does not give a warning if 'x' has length greater than 1 -- it just uses the first element: assign(c('a1', 'a2'), 1:2) One way of thinking about this is that people using 'assign' get what they deserve. The other is that it is used seldom enough that adding a warning isn't going to slo