[R] sink() within a loop. Solved

jgarcia at ija.csic.es jgarcia at ija.csic.es
Wed Nov 5 19:58:03 CET 2008

sorry for my last mail. In effect, as you say ,I just needed to explicitly
print() the object to be sinked within the loops.

Thanks you,


> jgarcia at ija.csic.es wrote:
>> Hello;
>> It seems to me that this could even by a FAQ, but I cannot find an
>> answer:
>> Why a piece of code that uses sink() does not sinks anything if it is
>> executed within a for loop?
> Without sink(), does it print anything in the console? If not: use
> print() in order to print it (i.e. sink it to another connection).
> Uwe Ligges
>> Thanks,
>> Javier
>> ______________________________________________
>> 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