Displaying 2 results from an estimated 2 matches for "funon".
Did you mean:
  runon
  
2001 Apr 25
0
Managed to confuse match.arg (PR#921)
This one may not strictly be a bug, and it was certainly my
fault, but it took me a while to track it down and it is rather
strange:
funOne <- function(x)
{
  funTwo <- 1:10
  funTwo(x)
}
funTwo <- function(v) 2*v
funOne(5) # answer is 10 as expected
# now a different definition for funTwo with a match.arg
funTwo <- function(v, foo=c("small", "large"))
{
  foo <- match.arg(foo)
  print(foo)
  2*v...
2002 Apr 09
0
match.arg confusion (PR#921)
...R> From: J.C.Rougier@durham.ac.uk
    JonR> Date: Wed, 25 Apr 2001 13:23:09 +0200 (MET DST)
     ...
    JonR> This one may not strictly be a bug, and it was
    JonR> certainly my fault, but it took me a while to track it
    JonR> down and it is rather strange:
(it *is* bug)
     funOne <- function(x) { funTwo <- 1:10 ; funTwo(x) }
     funTwo <- function(v) 2*v
     funOne(5) # answer is 10 as expected
     # now a different definition for funTwo with a match.arg
     funTwo <- function(v, foo=c("small", "large")) { 
	       foo <- match.ar...