The following example should do what you want:
# Define function for ploting example <- function(...){ plot(cars) i <- 1 for (my.control in list(...)) { if (my.control) abline(0, i) i <- i+1 } }
I don't know if there is a cleaner way to pass control values ββto the build function, but at least it works.
source share