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

2008-08-15 Thread Smits N
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 `

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

2008-08-15 Thread Prof Brian Ripley
Your code is pretty much unreadable -- no spaces, not properly indented. Please see `Writing R Extensions' about how to prepare legible code. (If you want free consultancy, your potential helpers do expect this from you.) But I am prety sure that neither do.call() nor the for() loop are anythi

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

2008-08-14 Thread Smits N
Dear R-users, I am having a problem with passing an argument to a function in a do.call function which itself is in a for statement. I am building a function to upload question pools to the blackboard learning environment. This function which transforms questions to XML style output should b