Hi all, For some reason, I would like to use functions bellow (see example code bellow), but instead I get the following error message: *Error in foo2(...) : unused argument(s) (arg3 = 3)*
#--------------------- # example code #--------------------- foo1 <- function(arg1,...) { print(arg1) foo2(...) foo3(...) } foo2 <- function(arg2) { print(arg2) } foo3 <- function(arg3) { print(arg3) } foo1(arg1 = 1, arg2 = 2, arg3 =3) #--------------------- I tried looking through the R Language Definition, but couldn't find something that helped me understand the issue (way it should happen, and what is a smart strategy to avoid it) Any insight will be greatly appreciated. Thanks, Tal [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.