Re: [Rd] Warning: a final empty element has been omitted

2006-09-29 Thread Gabor Grothendieck
By the way, this seems to be a difference between 2.3.1pat and 2.4.0 since I get the warning using list on "R version 2.4.0 alpha (2006-09-16 r39365)" but not on "Version 2.3.1 Patched (2006-06-04 r38279)" On 9/29/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Here is a kludge: > > List <-

Re: [Rd] Warning: a final empty element has been omitted

2006-09-29 Thread Gabor Grothendieck
Here is a kludge: List <- function(...) { mc <- match.call() mc <- mc[as.list(mc) != ""] mc[[1]] <- as.name("list") eval(mc, parent.frame()) } List(1,2,3,) On 9/29/06, hadley wickham <[EMAIL PROTECTED]> wrote: > How can I suppress this warning? > > > options(warn

Re: [Rd] Warning: a final empty element has been omitted

2006-09-29 Thread hadley wickham
Sorry I should have mentioned: platform i386-apple-darwin8.7.1 arch i386 os darwin8.7.1 system i386, darwin8.7.1 status beta major 2 minor 4.0 year 2006 month 09 day20 svn rev39433 language R

[Rd] Warning: a final empty element has been omitted

2006-09-29 Thread hadley wickham
How can I suppress this warning? > options(warn = -10) > list(1,2,3,) Warning: a final empty element has been omitted the part of the args list of 'list' being evaluated was: (1, 2, 3, ) [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 3 > suppressWarnings(list(1,)) Warning: a final empty element has been