to a series of panels drawn by a function. (As documented, split.screen
does not provide this capability.) My idea is to mimic the 'plot.axes'
argument of filled.contour(), but with indexed statements to be executed. A
series of tests is given below. (NOTE: I know that I can use parse() on
character strings, but I'm trying to avoid forcing users of the function to
deal with nested quote marks, and the filled.contour scheme seems elegant to
my eye.)
f<-function(x){x[[1]]}
f(list({cat("a\n")},{cat("b\n")}))
f(c({cat("a\n")},{cat("b\n")}))
f({{cat("a\n")},{cat("b\n")}})