[R] Output an RWeka model via sink

Coen van Hasselt coenvanhasselt at gmail.com
Sun Mar 29 03:05:30 CEST 2009


I tried your code and it seems to work fine; the file contains the
expected output.
I used R 2.8.1 on WinXP.

On Sun, Mar 29, 2009 at 07:48, Francisco Javier Perez Caballero
<fjpcaballero at gmail.com> wrote:
> When I sink the output of an RWeka model to a text file, the output file appears empty:
>
> library(RWeka)
> model = LogitBoost(Species~.,data=iris)
> print(model)
> sink("output.txt")
> print(model)
> #file output.txt is created, but it is blank
> sink()
>
>
> Am I doing anything wrong?
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list