Nothing leaps out as obviously wrong to me. It may even be something earlier in the ODFWeave file that is causing the error. You said the code works at the command line, right?
The next thing I'd do is try to make the smallest possible ODFWeave file that has the problem - make a copy, then start deleting bits until it works. If possible, try with a different dataframe as well (rename something else to trainwhateveritwas), or generate a new random dataframe from within your ODFWeave document. Sarah -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.