Skip to content
Prev 2072 / 63424 Next

do.call() mangles expressions in arguments (PR#174)

Ross Ihaka <ihaka@stat.auckland.ac.nz> writes:
Oh yes! (D**n! I know I decided to take it easy for a few days, but I
seem to have displaced my brain in the process.)
Hmm. The following seems to work for the xlabs problem at least:

    for (i in 1:length(pars)) pars[[i]] <- as.call(c(as.name("expression"), 
        pars[[i]]))
    if (plot) {
        bxp(groups, width, varwidth = varwidth, notch = notch,
    ...etc...

(one might want to guard that assignment by an if(is.expression())
thing)