Re: [R] sink stack memory??

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Tue 17 May 2005 - 03:41:34 EST

Anubhav Manglick wrote:

> Dear R-mailers
>
> I want to store data in a seperate file named 'XYZ'
> so I uses sink function for it
> i runs the loop , say 100 times, and so every of the 100 times the
> function is called the result must go to the file. But after soem time
> of running it says
> "
> Error in sink("C:/XYZ", append = TRUE) :
> sink stack is full
> "
>
> but i have enough memory on the disk for this result
>
> I would be highly obliged to know the problem/mistake I am amking

I guess you forgot to close the connection? See the code (in connections.c) and the help page. The latter tells us "The stack is of up to 21 connections (20 diversions)."

If you did not forget to close the connection, please send an easily reproducible example.

Uwe Ligges

> thanking you
>
> anubhav
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 17 03:57:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:46 EST