[R] error in passing an argument to do.call when do.call is in a for statement

Smits N N.Smits at psy.vu.nl
Fri Aug 15 22:58:18 CEST 2008


Dear Dr. Ripley,

Thank you very much for your comments concerning do.call and call. Obviously, until this week I was fully unaware of the existence of both functions. I changed the following code

    x<-do.call(method,methodArgs)

into

    x<-call(method,Path)
    eval(x)

and after deleting `methodArgs' from the drawpick function arguments, I did run

    drawpic(method=paste("dp"))

And now it works!!


Apologies for the untidy presentation of my code previously.

Again, thank you very much!!



Dr Niels Smits
Taskforce Methods & Statistics 
Faculty of Psychology and Education
Vrije Universiteit
The Netherlands



More information about the R-help mailing list