Try this:

tkinsert(tex, "end", paste(capture.output(summary(fit)), collapse = "\n"))

On Mon, Sep 14, 2009 at 10:43 AM, Anne Skoeries <h...@anne-skoeries.de>wrote:

> Hi,
>
> is it possible to put a summary of an rpart-Object into a tktext-window?
>
> Here is what I'm trying to do:
>
> fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis)
> tt <- tktoplevel()
> tex <- tktext(tt)
> tkpack(tex)
>
> tkinsert(tex, "end", summary(fit))
>
> But since the summary of an object is a list, I always get back the
> following error-message:
> cannot handle object of mode 'list'
>
> So, is there a different tk-window I should use for this kind of
> "list" or does anyone have an idea how to put the list into a tktext-
> window?
>
> Thanks for the help,
> --
> Anne Skoeries
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to