> within( list(a="a",b="b"), c="c" )
Error in eval(expr, envir, enclos) : argument is missing, with no default
> within( list(a="a",b="b"), c<-"c" )
$a
[1] "a"
$b
[1] "b"
$c
[1] "c"
I'm not sure exactly why these two shouldn't be equivalent. It seems like the the =
version getting interpreted as an argument named c
to within because of the ...
. Is there any way to disable this behavior? I tried,
within( list(a="a",b="b"), `c`="c" )
but that fails too.