[R] Error with toString

Peter Ehlers ehlers at ucalgary.ca
Tue Feb 2 20:38:44 CET 2010


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



More information about the R-help mailing list