The R Project SVN R

Rev

Rev 61433 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61433 Rev 61434
Line 34... Line 34...
34
tst() # 0
34
tst() # 0
35
tst(clicketyclack) # 1 (even non-existing)
35
tst(clicketyclack) # 1 (even non-existing)
36
tst(c1, a2, rr3) # 3
36
tst(c1, a2, rr3) # 3
37
 
37
 
38
foo <- function(x, y, z, w) {
38
foo <- function(x, y, z, w) {
39
   cat("call was", deparse(match.call()), "\n")
39
   cat("call was ", deparse(match.call()), "\n", sep = "")
40
   nargs()
40
   nargs()
41
}
41
}
42
foo()      # 0
42
foo()      # 0
43
foo(, , 3) # 3
43
foo(, , 3) # 3
44
foo(z = 3) # 1, even though this is the same call
44
foo(z = 3) # 1, even though this is the same call