I don't think that rJava has a toString function. It does use the function in base. I see a function toString.XMLNode() in the XML package which is used as toString(x), so maybe that's where your problem lies; but I didn't see the XML package in your list of attached packages.
Anyway, here are two suggestions: 1. to answer your question directly: use base::toString(x) to enforce use of that function. 2. try methods('toString') to see what other toString()'s you may have around. -Peter Ehlers anna wrote:
isn't there a way to specify from which library I am taking the method from...like rjava.toString or base.toString.. ----- Anna Lippel
-- Peter Ehlers University of Calgary ______________________________________________ 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.